I have a script where I'm 1) reading in a text file 2)remove multiple spaces between values in the file, 3) load these values into an array 4) format a table from this array.The script returns the following error which I can't seem to resolve:(12, 8) Microsoft JScript runtime error: Object doesn't support this property or method.
I am using Google maps and an xml file to create my maps.I read the xml file to get the info for the map but if my xml file has loads of records, it displays them all on the map.What I want to be able to do is select a specific record of the xml file.How would i select a record with a given id i choose?
Now that is fine when the text is only one line long. Suppose it's longer? What I want to do is have Javascript give the variable contentString its text from a hosted text file in a similar manner to the way Javascript can insert more Javascript using a hosted .js file.
I illustrate what I need to do using some "dummy" javascript:
I'm writing a script and I've encountered a problem.. I have a txt file with many words, each word in a different line. For example: the file words.txt contains:
word1 word2 word3 word4 word5
I need to load the content of the file into a variable in my script. I prefer that all the words will be in the same variable with line breaks, but if you'll figure out a way to put it in an array, it's ok too. I really don't know how to do it, and I tried to google but didn't understand.. By the way, I don't want to change the txt file to js file, I need it to remain txt..
I am currently working on a little script that checks for the name and then retrieves the appropriate data from either XML or JSON.Below is how far I have gotten thus far.. the script works to retrieve some records, problem is its only able to get the first record because there is no check yet which one it wants.
I have a folder of images from which I access individual pictures using the ID[Who] variable index passed down from the parent frame plus a local index variable p.
where an example file in Photos is PhotosAndiamo1.jpg, the ID in this case resolving to "Andiamo" and the local variable is = 1. This works great.
I would like to add a file of text captions associated with the pictures, preferably saved in the Photos folder such as PhotoAndiamo1.txt.
While I can fetch the images easily by document.writeing the <img ....> command, how do I do a similar fetch for the text data and document.write it to the HTML? (Short of the hassle of creating text images and fetching those.)
when the user adds records to the sql database by asp page, it is better to have some validation to check there is no same record is it good to do it by javascript? or other method? i wish to have a general idea how to do it.
I have a table that is generated dynamically using CF. I also have a function that is able to highlight the selected row, but what I don't understand is how this function knows which row it is at. What I would like to be able to do is, click on the selected row, get the hidden value of that selected row, then pass that value to a CF action page using the a href.location.
Right now I hard coded the getRow function to point to a value, but ideally, I want that value to be generated dynamically. Code:
i m new to website development.just learning it.i have made a code in which i access my database(MS Access).i m able to print the first record of the database on the page.but i m not able to go to next record which i want to show on click of a button.i dont want to use while(rs.next) as i dont want to show all the records at once.the code i m writing is->
I am trying to create a form to edit existing data in my database. I have 2 drop down boxes( category then item) they do not work correctly. I am using php to populate the drop down boxes but there is nothing dynamic about doing this. I think I need to totally rewrite the page using java script or Ajax but I don't know what parts.So I want the user to select a category from a drop down list populated by database then have it populate the item list(so I think both of these need to be java script in case they change the category it will re populate the item list). Then I just want the selection of the item to pull the information to my form so they can update it and save the update(which I am pretty sure I can save the update as a php function but need to populate the item editable information in java script). I am really looking for help on how to setup the page with java script to make database queries and use the results to update parts of the page.In case you confused here is my flow:page loads
-User selects catagory query database for item list (on change event it think) -User selects item.Item information is pulled and displayed from database(cost, serial number, quantity(another on change event) -User is able to edit information and save updated results(run an update.php...)
I have written a series of HTML/PHP pages that allow faculty to add their publications to a database to be displayed on a website running over MySQL. It words pretty good, except for one problem... At the bottom of the form, there are a series of checkboxes listing each of the faculty members as a possible author (which are stored in a table in the database). The problem is that when the authors are written to the database, they are stored in their order of occurance in the authors table, not the order "checked" on the submission form. This is a problem because the primary author of the paper is not being listed first.
If I understand it correctly, when the form is posted, there is an array housing which checkboxes are selected is passed. How can I record the checkboxes into that array in the order they are clicked. Does this make any sense?
Have any of you come across a way that would allow you to essentially record a small sound clip through a website using your microphone?
I was thinking that it would be nice to allow friends and family record a little message on our family's website for us to play back for our daughter.
I currently have a "send us a message" form on our website that emails me the messages friends and family type... but what about audio?
I am assuming this would be a javascript solution.... have any of you come across something like this? It wouldnt have to be very fancy... just a button that you could maybe click and hold, speak, and then let go of the button. Maybe a little sound meter would be nice, too...
I'm trying to add a single test record (a comment item) to my MySQL database.The double f:ajax tags in commandLink body are to solve a problem, where I had to double click the button to reload content div.And now here comes similar problem:After loading the page, the first click of comment adding button never works - nothing happens. I was adding some logging methods into the addComment method and it is not executed at all on first click. I suspect it's caused by my Ajax reloaded div code, because when I launch such button on a plain page, it works good.Alternatively are there other ways of realizing panel refreshing instead of using ui:include tag, which might be causing the problem here?
Have an asp page that user selects a week from date picker and it returns data from sql table in a series of checkboxes for overtime availability. i.e., for the week of 10/10/2011 the checkboxes are Monday through Sunday, the user clicks the checkboxes they want to work overtime and hits a submit button. Let's assume they chose Monday and Wednesday. If they go back to this page later and pick the week of 10/10/2011 the sql table shows checked in the Monday and Wednesday checkboxes.
They can then make any changes they want, hit the submit button, and that sql record is updated with the new data. So on to the issue. For audit purposes, there is another sql table called ot_audit. What I want to do is every time one of the checkboxes is changed (pre hitting the submit button), I need a new record added to the ot_audit table. It will show a datetime stamp, who made the change, what was clicked, and if it was checked or unchecked. I'm new here and all I know is there are onChange and onClick events. Lost after that.
I am new to jquery and i have no freaking idea about jquery. One of the requirement is to use Jquery to datastore and dataretrieval so on my aspx page, a user enters a comment and clicks on "Add" button.When user clicks on Add button, I wan to add comments to database. Once data is added to db, I also want to retrieve same data, user name and current datetime as a dataset and show it on the page. How can I achieve this? I am creating a webservice which accepts "comments" as parameter and stores into database.
I have this JS code and it is really working just fine ... tit gives me all record based on what is selected on projectname down..
What i need to add is another dropdown to be able to filter by unique "BU" just fyi how arrays are build here :
For the same project i can have many department
And so on
So i want to get the first DDL showing all distinct project ..which is done so far - I am looking to add a 2nd DDL that includes all distinct BU "departments" under same project ..
I did the following coding, i m loading all json data and then filtering itsuccessfully, I instead want my ajax request should be for target record fetch only.
I have a jquery script converting a XML file into html and part of the script is set to display an image based on the value in one of the elements. It's almost working as planned except that it affecting the preceeding record instead of the record that meets the conditions of the if/else statement.[code]
I hava e java script fr confrmation of record deletion on server side in asp.net
In the button event i have a query for redord deletion
I need to delete the records if u use the return keyword the record doesnot get deleted but if i remove the return keyowrd the record gets deleted even if CANCEL is clicked