just learning javascript and DOM. i'm writing a form creation system. this code works in FF 1.5 but not in a default configuration of IE 6 on WinXP SP2. i'd appreciate any help getting this to work in IE.
what i'm attempting here is to create a module (in this case one with a text area) using the DOM and this module itself has controls that make use of the DOM (example code is a delete module button). in IE i first "Allow Blocked Content..." via the information bar. after this the module creation button works fine but the buttons that are part of the module do nothing. Code:
I am having a query on javascript dialog box which gets thrown on "onbeforeunload" event. i.e "leave page .. " or "stay on current page" is it possible to change the caption of these buttons using client side scripting?
It is supposed be just 2 different lines of changing buttons. I was planning to use the "+" and "-" buttons to add/subtract button lights from a column. Unless I did something wrong, I think it should work, but it doesn't... Why?
I can't make jQuery methods (html, hide etc.) work properly on newly added elements (added via ajax). It's fine with the the current elements of the page but doesn't work on new ones! I am new to jQuery.
I've now got my slideshow working with png captions flying in from the right. This was working perfectly but when I added the 20th slide the captions are no longer working properly, they seem to be disappearing behind the image. And when I add the 21st slide the captions stop working all together. Link below: [URL]
I'm using the following plugin to include pagination functionality in my application In a nutshell I'm developing a map-based application using Google Maps. The markers that I display on the map and the corresponding information windows (infowindows) that are displayed when clicking on a marker are dynamically rendered from records in a database as the user moves around the map. So basically these DOM elements are dynamically removed and added throughout a user's sessionThe contents of these infowindows are what I need to paginate in cases where multiple markers are stacked on top of one another.
I call the paginate() function from the marker's click event handler if that marker's infowindow contains more than one DIV. It all works beautifully until the user triggers an event that causes the markers to redraw (e.g panning the map). Once the following happens the paginate() function mysteriously no longer works. 1. I click on a stacked marker that causes the paginate() function to execute 2. I then execute some event that causes the markers (and corresponding infowindow DOM elements) redraw3. I click on the same marker as was clicked in #1. No errors are generated and the paginate() function is definitely called but the pagination does not occur. I think it might have something to do with jQuery seeing the containing DIV's id as a duplicate ID? Could I be on to something there?
The images stop at image 3; if I press next it doesn't loop. How can I make it continuously go round and round when I press next/previous? I'm new to JavaScript and I found this script online ( might be old ) and I just need to use it for a simple gallery where images switch as I press the navigation. My problem is that when I preview the design in my browser ( Safari & Firefox ) is doesn't work. Nothing happens, they are marked as links, but I just can't click them.
<head> <script type="text/javascript"> * DHTML slideshow script- Dynamic Drive DHTML code library * This notice must stay intact for legal use * Visit [URL] for full source code
var photos=new Array() var photoslink=new Array() var which=0 //define images. You can have as many as you want: photos[0]="SW4_1.jpg" photos[1]="SW4_2.jpg" photos[2]="SW4_3.jpg" //Specify whether images should be linked or not (1=linked) var linkornot=0 .....
I have 2 tables with Add/Remove Row buttons. The first table's Add Row button adds a row that belongs in the second table, and the Remove Row button gives me an Object Error. The second table works properly. The JavaScript for both tables is identical except for the ID's. When the tables are put into seperate html files both of the Add buttons work properly, but the remove row button from table one is still giving me the Object Error.
Following is the sample code <div id = "radio"> <input type = "radio" id = "radio1" name = "radio" /><label for = "radio1"> Choice 1 </label> ..... I want to select the radio button programmatically using its label value. And I want to get the label value of selected radio button programmatically.
I am working on this page - [URL]. When you click the Filter By buttons it alters the content of the iframe below it. This works fine in ALL browsers. However, when you click the browser "back" button it should return to the previous clicked Filter By button (and therefore the previous clicked iframe content). This works fine in every browser except Safari. In Safari it just returns to the previous full page (for instance, if I was viewing google before I went to my page and clicked the iframe buttons, it returns to google rather than the previous iframes).
What I am trying to do here is us jQuery to show my button states. I have a page here test page I am using the hover event to do the up and over states, and using the click event for the down state. They all work but when I click the button it shows the down state but as soon as I move my mouse it goes back to the up state. I was hoping to be able to have it stay on the down state while on that page then when you click another button it changes back to up state and the one you clicked takes you to the that page and stays at the down state. I have the up and over state active for each button but only have the down state on the home button for testing.
Here is the code for the up and over states and the down state for the home button is at the end of the code.
I've got some popup windows with help screens in them. The screens are other pages of my site specially sized to fit. Those pages have links to other pages, so users can navigate them inside the popup.So I thought I'd do two things:
1. Put a back button in the popup to let the user go back one or more pages in the help screens. But a simple button saying history.back() or history.go(-1) just does nothing.
2. Let the user refresh the pop-up content so that the user can go back to the first page of the help screen without having to close the pop-up and reopen it from the main page.But a simple refresh button saying location.reload(true) or window.location.reload() also does nothing.There is a button in there that works OK, window.close().Am I missing something fundamental about the nature of popup windows?I don't really want to have my help screens open in new browser tabs because I know people won't bother to close them.
I have 10 buttons on a page, and 10 more "onmouseover buttons" that correlate to the first set. Each button or onmouseover button is only 1-2KB! But I can still hold the mouse over a button for a couple seconds until it loads the onmouseover button. I'm using javascript to have the buttons change. The page does load a 2MB video. Could that be the cause? Can I tell it to load the buttons first somehow?
i am very new to VB and right now given a task to delete specific folder from the folder tree. i am able to delete the folder from the first sub folders. but i have to look in every folder for that specific name of folder and delete that.
that is i have a folder Z and want to delete folder x in the folder tree after z
Z a1 d2 f3 g4 x5 x2 e2 h3 x4 x3 x2 b1
c1
so the task is to find all the folder with name x and delete them.
I've a personal application I would like to script, that would bring up a particular web page (which happens to have a Flash application on it), then every 15 minutes or so generate the equivalent of clicking on a button (causing the application to retrieve and display the latest info).
Anyone know of any articles or howtos on the web for writing such an application? Code:
I'm working on a project using JQuery and Keith Woods' extension to provide SVG functionality. My final goal is to develop some kind of HMI/SCADA implementation. My intention is to have an svg graphic representing some kind of process and then change certain shapes parameters from scripting part.
I'm pretty new to Javascript, JQuery and so on. But I'm trying to make my way by reading a lot on internet. However I couldn't find a clue about my most recent issue.
Mi idea is to embed and svg file created before on Inkspace. This would be the skeleton of the process I want to represent. Then, from the html document where this svg file is embedded, I want to alter certain parameters of the shapes inside, for instance I want to change the colour of a particular rectangle.
So, I embed the file in the html document like this:
I am remote scripting using javascript to an XML gateway, the XML file I get back changes state i.e. either the car registration number exists (and it includes certain fields in the XML) or it doesn't exist (and it doesn't include certain fields).
When my code tries to display the result I am getting the 'object required' error because I am trying to access an xml element which doesn't exist.
For example this line would break if the plate didnt exist but work perfectly if it did:
var fuel = response.getElementsByTagName('Fuel')[0].firstChild.data;
Is there anyway to stop it throwing an error if it doesn't exist and just set a regDoesntExist flag or something?
I'm a greenhorn in SVG and javascripting but I'm learning by doing. So, here my current problem question :
I have a svg document embedded in another svg document. I whant, through functions in an external javascript file, manipulate objects in either the child svg document or the parent document. How do I get access to elements of the other document ?
Example : I have a document "A" containing X/Y - Axis and included another svg document "B" with the graphs.
I whant now, as soon as the mouse cursor is over a graph in document "B" the belonging lable which is located in the parent svg document "A" to change color or size.
Or I whant the graph in "B" to start blinking as soon as the mouse is over the lable in "A".
I don't know how cross document borders.
Can anyone give me a short exapmle to get me going?
is it possible to have a script that waits until the Adense javascript is done selecting ads, and then uses that data to do something.
for instance, the script checks if "Laptop" exisits in the link text of an adsense ad, and then proceeds by downloading (XML-RCP?) a picture of a laptop from the server.
It's important that the code does not interfere with the adsense script itself because that violates their TOS, but is it possible to just "read" the data that it generates?