html

jQuery .attr() undefined only in Chrome

I'm making an HTML5 tech demo for work in which a user can drag "apps" off a menu onto the screen and they'll appear in moveable and re-sizable iframes on the page. This all works well and good in Firefox, but when I try it in Chrome (Which supports more HTML5 features) it tries to load the url "undefined" in whatever directory I'm in. ...

From inside an iframe, how can I determine if the parent page has finished loading?

Are there any properties or events I can listen for from within the iframe to determine this? The iframe src and parent page are on different domains. ...

Javascript - filling textboxes with checkbox value

Hello all, In my web application, I've set of checkboxes which on check populate a textbox above them.(If more than one checkbox is selected, then their values appear in the textbox separated by commas). These set of checkboxes appear as rows in my HTML table. Here's my HTML code. <input type="text" id="newContactComment<%=rCount %>"...

Auto generating a new

Ok, so what I am trying to achieve is, when the user clicks on add, it will create a new instance of highway along with mallName and frequency, each of which will have a unique id, eg: highway1, mall1, freq1 : highway2, mall2, freq2 etc etc. But thus far, when I click add, it adds the items, but when I click use the second drop down li...

Make a link to DIV on site only

Is it possible to link to ONLY a div on a web page? For example, <html> <body> Here is some content I don't care about <div class="stuff"> Here is some content I want. Blah blah. It may change from time to time </div> Here is more content I don't care about and do not want to see when this...

Adding a new class to the page using jQuery

I am trying to programatically add a DIV with the class of error_icon to the page using jQuery. This is the HTML: <div id="error_icon_holder"></div> When they're added, the markup should resemble: <div id="error_icon_holder"> <div class="error_icon"></div> </div> I tried using .addClass, but that resulted in: <div id="error_ic...

Return string of html with an embedded php echo statement

Hi there, I'm attempting to return a string of html with an some php code within the html and I'm experiencing a bit of difficulty doing so. Example below: return '//bunch of html here <div id="test"> <?php if (isset($_COOKIE[\"cannycookie\"])) { echo "<a class=\"reply\" href=\"#\" id=\"deletelink-'.$d['id'].'\">Delete</a>...

javascript text animation and replacing

Hi, I have the following problem: I try to animate text so that it shows up letter by letter. This works for me like this: var a = 0, speed = 85, text = [], story = "bla bla... text"; function tickertext(){ obj = document.getElementById("textbox"); text[a] = document.createTextNode(story.charAt(a)); obj.appendChild(text[a]); a++; a !=...

When resizing the browser window...

Hello, I built a website in HTML and CSS, and whenever I resize the browser window (smaller) it messes with the components of the site, such as the navigation bar. The navigation bar is a series of images linked to their destination using <img src=. Any idea how to fix this annoying thing? THe code for the navigation bar is below: <br...

IE6 only allowing $.get(..) through server

Hello, I am not sure if this issue exists in other browsers; however, if I am simply trying to run a jquery $.get() in IE6, without running through a server, then it[$.get] will fail. As in it wont actually get the file. I am simply trying to grab an xml file in the same directory. I am trying to bundle this stuff up on a disk and distri...

CSS Padding of a nested table ignored by Opera

Hello, I am using a table nested in a table which happens to have the border-collapse:collapse; property. The problem is with the padding property of the nested table, which Opera seems to ignore. To reduce it to the simplest possible, with the following HTML code...: <table style="border-collapse:collapse;"> <tr> <td> ...

input length = value length & expands automatically according to value length

I want value length to be the same length as input field and expand automatically. When i write in some text it always has right or left free space. I don't want to define input size, i just want it to be the size of the text. Can this be done ? ...

Do we still need the space before the slash in <hr /> and others?

Possible Duplicate: Space Before Closing Slash? Hi, If I remember correctly we have it in the first place as some old version of Netscape choked if we didn't add the space (it would think the node never ended). But is it really necessary today? ...

How to disable submit button once it has been click?

Hello All, I am having a submit button at the end of the form. I have added the condition onClick="this.disabled=true; this.value='Sending…'; this.form.submit();" in the submit button, but when it moves to the next page, the parameters did not pass and null values are passed. Can you please help ...

Change a default window size in browser

<form action="mail.php" method="post" target="_blank"> <textarea name="mess" cols="50" rows="5"></textarea> <input name="send" type="submit" value="Send"> </form> After pressing the button "submit", brouwser will open a new window with some text like "OK, your messagw sent to our mailbox". Can I make this "new" window NOT full...

HTML5 and a sample RTP Stream?

Hi, I'm making a website in html5 that needs to play an rtp stream, but When I run it, I dont get anything, and I'm not sure if its my browser (safari 5), my rtp server, or the html code that is the problem. :P does anyone know of a sample rtp stream I could use to test the HTML and my browser? Thanks Beforehand! Cheers, Lukas ...

Drop-down menu disappears and comes back only in IE7 problem

Hi all, I have a problem with one of my drop-down menu. Usually they work fine, but this time what happens is the following (and this is only taking place in IE7...ugh): When I put the mouse over the li with class submenu, the ul with id of #nav2 fadesIn(); However, in between the two li's of the secondary nav (#nav2), I have the foll...

"AJAX" Upload Issues with jQuery

I'm trying to create a simple "AJAX" uploader (as i know you can't actually do an AJAX upload). I'm having issues and i REALLY don't want to use a plugin. I'm writing an app that needs to have PDF attachments as part of a form, and my app's code is already at about 1000 lines of JS + jQuery. I don't want to add on an extra 1000k of SWFOb...

html form values to a javascript array

how to insert values in a html table, an array multidimensional in javascript. Additionally, such as performing calculations between the columns of the array and insert the results into a column of the same array. thanks for your answers. ...

Valid workaround for <style> tags inside of <body> to add custom CSS?

I know putting <style> tags inside of <body> is not valid. What other techniques are possible to get around this limitation? In my design I have a few static pages created with server side includes. For each page I need a few extra lines of CSS to control the display of a few DIVs. What is the best valid way to achieve this effect? ...