I've got a cascading drop down with three levels: composers > books > songs. The user picks a composer, which populates the next fields with correlating data. That data is made via some php functions. If the user selects a composer, say, Thomas Campion, then a book, say, the The Third and Fourth Booke, and then a song from that book, say, Now let her change, and then hits the get value button, what should happen is the form posts back on itself, retaining the values the user previously chose via a selected="selected" attribute. This works in Firefox; in IE the composer the user chose is retained, but the book and song are not.[url]...
I've determined (with the help of some people on the html board) that this is happening because of the javascript that's running on the page by removing all the javascript and just running the php/html. Can someone figure out how IE is running this differently from Firefox and maybe (please?) how to fix it?[code]..
I am just working on a project where i have to replace the href-attributes of all links by another string. The problem is, that i need the old href-attribute to generate the new one, and i have no idea how to get it
i tried it with something like this, but it doesnt work [code]...
I know there is some way to do it but i forgot it and i looked up the whole internet for it and didnt find it
What I’m trying to accomplish is set an attribute called opacityin any element with a specified value that can be used to toggle whenever the user hovers over the element. The code below works perfectly but one other thing I would like to be able to do is retrieve the attribute opacity after the document loads and fade the element to that value instead of hard coding the ".66". This is probably fairly easy I've just never ran into a situation where I needed to do this.[code]...
Let say I have the following HTML. <select id="gt_pref_bl"> <option value='enabled'>Enabled</option> <option value='disabled' selected>Disabled</option> </select> Now what I am trying to do is if the person clicks the Enabled option. I want it to changed the option to be selected. I am going to store this value also.
I've created the simple select box below that will "onchange" when an item is selected. I'm trying to apply the "selected" attribute to items that are chosen from the menu, so that if "Home Page #2" is selected, the "selected" attribute will be applied to "Home page #2" once you arrive at "Home Page #2". I've follow a few simple tutorials with no luck and even tried php conditionals to trigger the "selected" attribute with no luck.
I've created the simple select box below that will "onchange" when an item is selected. I'm trying to apply the "selected" or "selected="selected" attribute to items that are chosen from the menu. Example: The goal is to show " <option value="/1" selected="selected"> " when page "/1" is chosen and to show <option value="/1"> when /1 is not the current page. I've follow a few simple tutorials with no luck and even tried php conditionals to trigger the "selected" attribute with no luck.
I have a JSP page that calls a javascript function located in an external js file.
The js file is included to the page using the following code:
The script folder is located one level above the JSP page. I also used src="../scripts/javascript.js" for the source attribute and it did not work either.
When I moved the called function to the calling JSP page it worked fine.
So, the weird thing is: it only fails with IE7. In IE6 it works fine.
This has stumped me for the last couple of hours and I was wondering if anyone else could shed some light... I have a page which loads some cookies, when taking the value from the cookie it defines whether a checkbox should be ticked or not. This works if the value of the cookie is true but not if the value is false and it ticks the box anyway. The code is....
var widgetVal = loadCookie(widgetName); switch(i){ case 1: document.getElementById('calender_widget').checked = widgetVal; break; [Code]...
i is incremented each time in a for loop and a different cookie is loaded each time. As I said the code works if it set to true but not false however if I remove the variable and specify it as false it works.
I'm making a simple color code chart that when the user clicks the button, it alerts the color code, but javascript wont recognize the color code. Could someone please help. Here's the code:
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title></title>
I have a series of videos which must be loaded dynamically on their pages which then get loaded into an iframe. I need to be able to load these videos using variables for the width and height. It's imperative that I use variables as the sizes of the movies will be determined by the user's resolution.
Here's the code I'm currently using <script type="text/javascript"> var dimW = screen.width; var dimH = screen.height; var w1 = dimW.toString(); var h1 = dimH.toString();
I'm developing in xhtml so naturally, IE doesn't recognize the document.write statements and the page comes up blank in IE. It works flawlessly in FireFox (as expected). So, I need to replace the document.write statements with something else while still being able to pass variables for the movie objects height & width.
I've tried this code: <script type="text/javascript"> //alert("The beginning"); var dimW = window.innerWidth; var dimH = window.innerHeight; var w1 = dimW.toString(); var h1 = dimH.toString(); ..... document.getElementById('mediaPlayer').appendChild(theNewMovie); </script>. I then have a <td> with the id of "mediaPlayer" but nothing is showing up. Most likely because I'm still fairly new to javascript and am probably forgetting or overlooking something.
I am working on my personal portfolio site, and am using a code that will make each portfolio piece appear in a new div when the name of the piece is clicked on. The problem is, JS does not seem to recognize double digits. I am not familiar with JS at all, I just got comfortable with CSS/HTML a few weeks ago! I am in over my head. It would really.how to change the code so that I could make about 15 to 20 divs instead of 9. Here is the code...
I am making this drop down menu with several options depending on your choice. It works fine in FF but when I tried in IE simply won't recognize a Value. The window keep popping out even though you choose an option, this way won't let me go to the next step.
Here is my php code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
i have found a possible bug in 1.4 but it's only in Internet Explorer 7 & 8.The following code does not work and completely ruins every peice of jquery on the page (that means everything inside $(document).ready and anyting else...
I cant see any syntax errors - i pulled the example from the 1.4 site. There is no trailing commas in the object notation and i really cant see any reason it would work in firefox and not IEx and more to the point not only not work in IEx but break any other jquery in the entire page....
The xml tree is the responseXML part of an XmlHttpRequest and is stored in a the javascript object xmldoc. While trying to test the node type of the children of the "results"-Element I got different results with IE and Mozilla: Code:
alright, im working on a page that has a drop-down menu in it...it uses the onChange event to trigger the different links (only one at the moment, but still)...and now XHTML doesnt validate it as a recognizable attribute...so is there some way to somehow target the drop-down menu's onChange event from a separate .js file? heres the basic code:
I'm working with a large (and unweildy) ASP.NET application, and there is a lot of jQuery code that uses selectors like this:
[name=_aspnetControl$_withASubControl] And unfortunately, some selectors that also look like this:
[name^=_someAspNetControl$_radioButtonList].
In other words, the effort to remove the $ from the attribute selectors would be monumental. If it is possible to escape the $ symbols, I can do that easily enough, but unfortunately the situation right now means that I can't upgrade to jQuery 1.5.
I'm learning jQuery with XML. I'm familiar with other query languages such as XPath. I'm having a little bit of difficulty wrapping my brain around how jQuery works but I think I can make the leap if I see a solution to a problem I know how to solve with other methods Given the following XML, please share a jQuery solution to finding the value of attribute B in elements named bar where attribute A has the value 30:
I've always had this limitation when adding inline content using JQuery. Such as adding one more text field inline let's say. Basically, if I had defined some code related to input fields outside the scope of the function that adds the inline code, this new input field will not recognize it.
Something like
Code:
However, Ive always solved it by adding the click event another time after the code in placed inline
Code:
But I'm trying now to avoid this repetition, how is it possible?
I have a form, with a submit button. Inside this form i have one input text field, in addition to an add more button to add more of that input field using JQuery .html(val);. Now the issue appears when I submit the form, all inline added input fields are not recognized, they are not set and there is no data for them in the POST.