html

How do I get Asp.net MVC BeginForm to add closing tag correctly?

I seem to be missing something obvious here, but cannot see what it is. My problem is that the closing form tag for BeginForm is not being added to my markup. I am looping through a collection and creating a form for each item, but the forms arent closing properly. Any suggestions please? Thanks <% foreach (var item in Model) { %> <...

index.html vs default.html

I've used both index.html and default.html in the past for home pages on sites I've built. These days I mostly use index.html, but I'm not sure why... consistency I suppose. I'm pretty sure IIS handle them the same, but I am wondering, though, if there's any benefit or pitfall in using one over the other, or are they treated the same in...

Automatic scroll to div using #div in url not working with url variable

I am trying to autoscroll to div using: /index.php#tabletabs2?contact_added=1 when I use: /index.php#tabletabs2 it works. How can I have both a variable and the autocroll working in my URL??? ...

How to save a the content into the file with neat alignment?

Hi Friends, I am having a textbox, in that i have loaded a xml file. After editing and saving the xml content into the xml file, the content is not in the right formate. While loading again, its not in the xml format How to save a the content into the file with neat alignment? Please help me For ExampleI need to save like the following ...

Remove short tag in html 4 validation using aspx

hi all, I am new to HTML 4 validations, in that if I put HEAD runat="server" tag I am getting this error - Error Line 6, Column 82: character data is not allowed here …lesheet" type="text/css" media="all" /> In the head tag I have called css files. So if any one know about thin can help me,how to solve this error? Thanks in advanc...

jQuery noob: $("this").parent().attr("id",newId); troubles.

Hi, I have this code which I am trying to change the ID of on.hover. <span id="slidingProd"> <a href="{link controller=order action=addToCart id=$product.ID returnPath=true}" rel="nofollow" class="addToCart" title="Bestill" onclick="addToBasket(); return false;" id="fly_to_basket">&nbsp;</a> </span> I tried to use this jQuery...

how to exchange variables between extern iframe and site

hey guys, for developement reasons (working with facebook-connect) i put the connect iframe in an iframe. on that way i am able to work on the connect-thing independent of my ip and don't have to develop on the live-server. the iframe holding the connect-button iframe is on my server, accessing the same db-server as the developer versi...

Letters in WebView and TextView not showing up correctly.

Hi! I'm trying to parse html document, extract content and show it in WebView or textView. But some Croatian letters are not showing up correctly. The problem is in the page I'm extracting content from. In one part of page source letter is "š" or "č", and in another part the same letter is written as "&scaron". But my browser displays i...

Can I specify when my video shall start on html?

I want my video to show a specified image while embedding it on html basically I'm doing the following: <embed src="video.m4v" width="520" height="456" autoplay="false" controller="true" type="video/quicktime" scale="tofit" pluginspage="http://www.apple.com/quicktime/download/" bgcolor="black"> </embed> Is there a specific parameter t...

jQuery noob: transfer not transferring..

I made an example, I copied it straight from the jQuery website yet, it doesn't transfer.. HTML: <div class="addToCart"> BLAHHHH </div> <br> <br> <br> <br> <div class="handelv"> MORE BLAAAHH </div>​ jQuery: $(document).ready(function() { $(".addToCart").click(function () { var ...

set all nested li's to be width of widest li

hey, How do I make nested li's the same width? When I use the below code each nested li is only as wide as it's text + margin. I'd like all of the li's to be as wide as the widest li under the parent ul. eg: <ul id="menu"> <li <a href="#" title="Menu a">Menu a</a></li> <li <a href="#" title="Menu b">Menu b</a></li> <li <...

Changing background images like this

If you guys check out this webpage: http://www2.scandvision.se/oresund10/ How have they done this background fade in fade out? When i check the source this <img id="wrapper-background" src="images/body-background-0.jpg" alt="Background" /> and i think theres some kind of script maybe php or js, or both, that every 5 sec changes ...

Extract part of HTML in C/Objective-C

Hi, I need to extract the detail content of a website while preserve all formatting of the division. The section I wish to extract is: ... <div class="detailContent"><p> <P dir=ltr><STRONG>Hinweis</strong>: Auf ... </p> </div> ... My current solution is to use HTMLParser from libxml2 and xpath to find the nodes and walk through all ...

Create a "inset" effect using CSS in websites

Hello, I am very much impressed by the "inset" like effect in many latest websites. Some examples are and The line in the center. Nowadays, many websites use these kinds of lines/effects. I tried to achieve the same with borders but the color combination is not working me and it is not proper. Do other websites use images for th...

Tabindex is not working in ie 7

Hi All, I used a tabindex in my code, everything is going great its works finr in Firefox, ie8, safari but its not working properly in ie7, when i used a tab index in ie7 it come up to two input file then it get back to index one; example: <div tabindex=1> <a onclick="slide_down()" style="cursor:pointer;width:160px; padding-botto...

Absolute positioned div jumps outside containing div in IE7

Having trouble with a couple of display issues in IE7. Firstly, my large text headers display too far up in Internet Explorer (all pages) Secondly, my descriptions on my Portfolio pages end up outside their containing divs. Works great on FF/Chrome/Opera/Safari though! You'll see what I mean: http://bit.ly/a3hUD4 (I've used bitly so my...

Can I set a style for the content of an iframe from the main page?

We have a page the embeds a Google Calendar in an iframe. Recently, a warning box div began appearing on the calendar that looks like this: <div id="warningBox" style="color:#aa0000;">Events from one or more calendars could not be shown here because you do not have the permission to view them.</div> We don't want this box to show on ...

rating stars not working in IE

http://ratingscorner.com/ie-test i have a page like this. this works on all browers but not in IE. i am clue less as to y. any help on this? ...

CSS: Hidden elements still take up space on printed output

I'm using css to only print a section of a page: body { visibility:hidden; } .print { visibility:visible; background-color: white; margin: 0; } The section above the element I want to print gets properly hidden in the print output, however it still takes up the area of space. I tested this by making a ...

javascript / html - visit duration on page

Is there a way to use javascript to determine how long someone was looking at my webpage before they closed their browser or hit the back button? Something like send a message to php page every few seconds or so in the background? ...