Yeah i know, SQL entry isn't sanitized, but i'm not really into that right now. Could somebody please tell me why it's not working? lso, i am looking forward to extending the project further, what else functionality should i add beside SQL sanitizing ?
I have a problem in accessing all elements with a common id name in ExtJs. In fact, I have a couple of divs with id like:divmic+a number.
That is the code:
Code: <div id="slideshow" > <% for i=0 to 660/23 for j=0 to 380/23 Response.Write "<div id=divmic" & i & j & "
[Code]...
If I try this code, what is inside of "each" instruction works, but if I want to access all those elements having id starts with "divmic", it doesn' work. Why it's happen that think and how to put all those elements into an array, in ExtJs ?
I have a data store having a Note field (a textarea) and want to display all Notes satisfying a user input (even metacharacters).'ve written the following function to handle this:
[CODE] function notefilter() { var newfilter = Ext.getCmp('searchnote');
I'm starting with javascript and I have a doubt. I already have a grid with data and a form with 5 fields. One of these fields of the form I want to fill with data of the grid. This is what I have:
I need to send the contents of a ExtJS Textarea to the backend server for saving (autosave facility) as the user types in. How do I buffer the contents and push the buffer to the server after some threshold value. I've done as below:
I have a JavaScript application which opens an ExtJS Window, containing an ExtJS TabPanel, which has a tab containing a Data Grid, showing approximately 900 - 1000 rows, each with 7 columns of text fields. The grid may also be filtered to show about 100 rows at a time. When the window opens, navigating to this tab can cause Firefox or Safari to spin/lock up for over 60 seconds...
This is Ext 2.2 I know it's very hard to say without code... but without seeing code, my question is: Should ExtJS be capable of displaying a grid of so much data? In trying to optimize should I be looking at my code, or is ExtJS itself the problem? Is anyone using ExtJs to display such large grids?
How does one trigger an event programmatically? I'm interested in how to do this in both the "Level 0" event model as well as in the DOM Level 2 event model.
A picture says a thousand words. When we hover the cursor over this...we get this. How can I emulate that programatically? I know the <label> highlights the checkboxes in Google Chrome, but it doesn't in Firefox. And I also need it when the cursor is over an image....
I have a code that I call from Button_click event. The code adds a new row to the table and attempts to add onclick element to every td element in the new row. Somehow, onclick does not work.
Here is the code:
function insRow() { var x = document.getElementById('Table1').insertRow(1); for(i=0;i<4;i++)
How do I reset a slider value after it has been declared from acalling page?I have a modal box, that has a form in it. I use this form to add/edit items. Within that form, I have a slider from jquery UI. When Iclick on a link to bring up the modal box and EDIT data, I'm havingtrouble populating the slider with the appropriate value.Here is the relevant code from my files:MAIN PAGE:
I am trying to switch pages programatically. When a user logs in successfully I want to switch to another page. I thought mobile.changePage was used for that but I get this error message: TypeError: Result of expression '$.mobile' [undefined] is not an object. Or is there another way to accomplish this?
I am programatically trying to send multiple emails from within javascript code. The problem I am having is as follows: - In one try - I am using window.location="mailto:"+emailList - this works great if it only needs to generate 1 email, but I am doing it in a loop. when it loops through the 2nd time, it does not create a 2nd email - In a 2nd try - I am using window.open("mailto:"+emailList - this does open multiple emails, but it also opens multiple windows. I am trying to find a way to either not have the windows open (only the multiple emails) or automatically close the extra windows. I am including my code below - note - the window.location try is listed, but commented out.
if (emailListArray.length > jsNumEmails) { var j=1; for (var i=0; i<emailListArray.length; i++) { partialEmailList = partialEmailList + ";" + emailListArray[i]; if (j == jsNumEmails) { //window.location="mailto:"+partialEmailList; window.open("mailto:"+partialEmailList, "temp", "height=5, width=5, top=0, left=0"); j = 0; partialEmailList = ""; } //if j++; }//for } // if anything left in the partial list, then send that separately if (partialEmailList != "") { //window.location="mailto:"+partialEmailList; window.open("mailto:"+partialEmailList, "temp", "height=5, width=5, top=0, left=0"); }
1.navigate to the daniweb forums page and then click the memberlogin img via program 2.then i ve to fill the username and password of my account 3. then to click the 'go' button to login into the forum via program
i tried to do this process but i ve got struct in the first step itself. it navigates but it does not click the member login img.
[Code]..
this is the code i used.. reply where i ve wrong and why this code doesn't work.
I am using cluetip on a button. I want to be able to activate the cluetip on the button later as to highlight the button's presence. How can i do this? I have tried:
I have a table and each row in the table has div in one of its column and these div are hidden , this table header has a link, onclick of this link I want to generate onclick event on all the divs mentioned above.
I have run into a problem with something that should be simple. I want to submit a form programmatically using .submit(). It's a fairly standard simple form, four text inputs and three radio buttons, nothing at all unusual.:
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 want to programmatically list all properties of JS object from C++ code (I am using Mozilla's JSAPI). I know I can go up the prototype chain with JS_GetPrototype, then enumerate each object's own properties with JS_Enumerate.