what is wrong in the following piece of code? It works fine in Firefox, Safari, Chrome and Opera, but won't work in IE.
The purpose of the function is to receive a list of discussion threads that are available on the site and list them in a simple table, which is created by the function and placed in a div. More specifically:
(1) The function receives a json called "threads" (obtained through Ajax from a server-side PHP script).
(a) The 2nd element in the json, "records" is an array of records, one record for each thread.
(b) The 1st element in the json, "fields", identifies the integer keys of the id and title of each thread in the corresponding record.
(2) The function creates a table with one tr for each thread record. In each tr, there is one td with the thread's id and one with its title.
(3) Finally, the function places the table in a div with the id "discBdCont".
In both Firefox, Safari, Opera and Chrome, the table appears as it should. In IE, however, the table does not appear at all (although the text "Available discussion threads:" does appear, and I see no error messages or anything).
I have a table that contains many rows, some in italian with code <td nome='riga_i'> and some in english with code <td name='row_e'>. I have created two buttons with different background flags: italy and uk, so when one pushes the button with flag uk, the html page will be reloaded with only english rows, and when one pushes the button with flag it, the same page is reloaded containing only italian rows. All the code posted here works well, but I think that the code can be better because to reach this result I had to dupplicate the same function and I don' t like this.
Here the code:
To better the code I have tried in this way but without success ...
I have a "hard-wired" html div which encloses a button. Clicking the button causes the execution of a JS which successfully creates another div which encloses a button. The onclick attribute of the second button points to a JS which is supposed to remove the second div, the second div is not removed. I am using Firefox Deer Park Alpha 2 on an iMac 10.3.9.
Assume for the moment that I have not made a mistake in any of the code. Is it possible that a div cannot remove itself?
I have a javascript function that catches a click event of a row in a table, but I am looking for a way to simulate a click in the first row on page load.
function onRowClick(row) { //Do something }
My table is actually a .Net Datagrid named dgrList, here is the grid
Now when I try to run something like onRowClick(document.frmRemoteScan.dgrList.rows(0)) ;
I get the message that dgrList is null or not an object, and when I loop throught the elements in my form, dgrList is not one of them (yes it is between the form tags).
My question, is there a way to reference the created table via javascipt? Or does anyone have a way to simulate the row clcik via javascript.
I've created a table with Table Header and the table may or may not contain any rows initially.
I've included a .css file in <head> section of my HTML script and I'm creating rows to the table dynamically using JavaScript (using DOM), and the problem is those created bby DOM are not following style sheet rules applicable for table rows and cells. But the rows created from within HTML script are following style sheet rules. The following is sample which is used to create dynamic row. Code:
i am creating a table dynamically using java script- the number of cells in a row is constant and the data is accepted from the user from x text boxes(based on number of cells).now, i want to insert a button in the x+1th cell of each row and i want to extract the data in the row that contains the button that gets clicked back into the text boxes for editing.how do i go about doing this? dynamically creating the table is not a problem, but am not able to extract the row data for editing :-(i forgot to mention this- but after editing the data in the text box, i need to be able to insert the data back into the same row from which the data was extracted in the first place...
I have created a table using HTML and created a seperate hyper link to add extra columns dynamically. Now problem is that.. The changes are undone once the page get refreshed. I have to do to make the changes made by java script on html table permanent??
I intend to have this code below generated dynamically (being able to have from 12 to 40 rows). (created from C# code)
<tr> <td align="center"> <h2> 01</h2>
[Code].....
Can this jQuery function be created so I can add the function to "#<%= chbNuevoJugXX.ClientID %>" instead of "#<%= chbNuevoJug01.ClientID %>" and then use the XX to how hide the corresponding row?
i have several programmatically generated DIVSectionsin my WebApplication. And i have for each of these DIVSectiona RadioButton Group. When the user now checks the RadioButton of the associated DIV-Section theSectionshould be Shown. And when he checks the other RadioButton the DIVSectionshould be hidden.How could a jQuery Function and a call look like, which does the above action?Here my sample:
I have some wordpress code which generates a menu with links to the pages created in the admin area.
[Code]...
The id of active is on the currently selected menu item. In the above code the home page. How can I get the subnav to show only if the main menu item which contains a subnav is active? The rest of the time I want the subnav hidden. I have found the effect I want on another site [URK]. If you select advanced treatments a sub menu appears. If you select say jobs then the subnav for advanced treatments disappears.
I am trying to hide/show table when hide/show button is pressed
Problem: The code works fine when I remove 'slow' from line 10. But with 'slow' in line 10 content of toggleButton doesnt change from Hide to Show when pressed.
I would like to have an anchor link with hidden text. When I click on the anchor link, I want to see a text drop below showing the Keep trying information. It keeps giving me "object expected" error message. What object I need to put in there. Here is the code:
have added a javascript button to my website that allows me to submit information with out refreshing the page, this works perfectly in Mozilla, however in IE the button doesn't display and in the bottom right hand corner of the browser is the little yellow triangle with the word done with errors.
I am trying to use DatePicker ui. I have uploaded "js" and "css" files in the same directory where my script resides. I also downloaded "jquery" in jquery.js file in the same directory. When I run the script, the field is displayed but the DatePicker widget doesn't show up.
I used JQUERY to create a slideshow on my website. It worked fine off-line but when i uploaded it on the server it doesn't work at all. I'm very new to this so i was wondering if its the coding, server or the script that makes this problem.and the problem is in each and single one of those pages in the menuknow if I should post a certain part of the script or the html file to ensure a better solution.
I'm trying to create a JavaScript slideshow that is based on the slideshow in this Web site: [URL] It consists of the HTML page, which creates the slideshow interface:
[Code].....
In the above link that contains the entire activity, several pictures are also listed (slideImg0.jpg, slideImg1.jpg, slideImg2.jpg, etc.). Although the activity shows how the captions for each slide are incorporated into the code, it doesn't show how all of the images are incorporated. show me how I would write the code for the images and captions (so that a working slideshow appears in my Web site) in the JavaScript and the HTML pages? Also, could you give me an example with two of the images (or captions, if necessary), so I'll know how to write all of the images (or captions, if necessary) consecutively? In the JavaScript file, would I write the code like this:
I am doing a final project so I've been asking a lot of questions! This image displays and the rollover works in firefox, but the image doesn't display at all in IE. I was hoping someone had a suggestion what is wrong. Below is my function:
<script type="text/javascript"> function rollImage() { document.woman.src="girlPic.jpg"
I have a page which I've just added a div to so that it will show/hide 'advanced' search options. The problem is that I've not found a way to 'show' the div when a history.back() command is used.
First off I had it so that the div style was display:none. Site user would click on 'Refine Your Search' to show the additional fields. That worked fine, but the customer wants it so that when they go back from the search results to the search page it 'remembers' which boxes were ticked.
The problem is that when it does the history.back(), the 'Refine Your Search' radio button is selected but the div with the controls doesn't show. So, thinking I was clever I thought of an alternative way to skin this cat .
Instead of having the style of the div set as display:none I would set it as display:block and then have a javascript function that would set it to display:none when the page initialised. That way the 'default' state for the div would be display:block.
No dice...even though in the source code it shows the style of the div as being display:block the div STILL doesn't show.
The search page is at: [url]
Click on 'refine your search', tick a box (e.g. air conditioning) and then click the search button. Then at the bottom of the results page click the link to go back. You'll see the problem.