JQuery :: Used In An Asp.net User Control (.ascx File)?
Feb 14, 2011
I am trying to use jquery in an asp.net user control and i am getting a recuring problem. I am getting an error stated 'Object expected'......Can anyone help me on this issue
I am a ASP.NET developer and I would like to use the jQuery BlockUI inside a generic control, designed to show a popup (with javascript and CSS effects). My problem is to disable (key tab, enter and mouse clicks) the parent window (parent element) (my control is inside the page and does not use iframe). Inside my control I have a DIV and I show his content when the user call the method designed. The problem is: I only see the "caller" of BlockUI using this type of eventhandler "CLICK", ex:
$('#pageDemo2').click(function() { $.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' }); test(); });
It is possible apply that property inside the blockUI out of my DIV (parent element), inside my control, without click ? Is it necessary to use a iframe?
Not sure if this is the most appropriate forum, but I'm a jQuery newbie, so figured I'd start here. I put an accordion control on a web form, which seems to be working great!
[Code]...
The users tend to tab through the form. But when they tab to the end of an accordion section, the focus goes back to the top of the page. Is it possible to go straight to the next section of the accordion?
is there a way to assign an event to a file input so that when a user selects a file to upload the event is triggered and i can check out the file extension? The reason why is simple, i want to perform different actions depending on the type of the file.
I have one html-file where the user inserts a search path for an excel file. When the user clicks the button the data in the excel file should be presented in a <TABLE>. (Yeah, I know, activex only works in IE .. but that's good enough for this project)
The problem is .. I started out with a "fixed" search path for the excel file, so I didn't have the code in a function. That worked just fine. Once I added the function {} around the code it wouldn't work, it works just fine if I comment out the form-part and the function-part, and give the search path, of course. It also works just fine if I use the function and form, but remove the <TABLE>- and <TR>-rows
(Short version on a asp page, fill out the form and press submit. It takes you to a thank you page, at that point I want it to go BACk to the form.
(Detailed For my work, we have a web based ticket system, and add notes to these via asp pages. I came up with some code to auto file the text, change combo box's then submit itself. Upon submit it takes to a simple "Thank You page" .... after .submit I would like it to go back to the origional "frmAddnote" page. I have tried everything for 2 weeks including:
[CODE] history.back(); or history.go(-1) or
[Code]....
PS Its important to mention that I am running this code from a testfile.js on my local machine... Works fine just cant get it to go "back". I have no control of the code on the asp pages but thats not important.
And it does indeed allow the user to select a file on his computer.
But when I access the value of the control I get an odd value. I do this, in javascript:
Code: var FileSelector = document.getElementById("FormsFileSelector"); var FileName = FileSelector.value; And the FileName that I get is "C:/fakepath/MyPicture.jpg"
The actual path is C:/MyDocuments/MyPictures/MyPicture.jpg". But instead it's coming up with "fakepath".
Very weird! How do I get it to return the actual full path to the file on the user's computer?
I don't get any pleasing results... in the file, there are 'quoted printable' characters that are displayed as their corresponding hex value, and their encoding seems to be in windows-1256. I've tried messing around with contentType but didn't get any results.
I cannot modify the '.eml' files, so I have to load and process them in jQuery (hopefully). So is there some sort of library or built-in function that I can use?
Situation:I have a very long page divided into many sections vertical-wise marked by bookmarks, say pageX.html#s1 to s10. I need to show the section inside an iframe (iFrame1) on the mainpage (mainpage.html). I am thinking of having 4 buttons, sitting on the mainpage, to help navigate between these sections on pageX, namely NEXT, PREVIOUS, TOP, END.condition of the frame, fixed width/height, no scroll, no border.Very new to javascript but need this code to make a page work for BIZ.
I'm trying to allow a user to select an XML file so that my javascript can parse it and create some pins for a google map. It works fine in Firefox, and by using FireBug I can see that the file is being accessed as expected. IE on the other hand tells me that "'files.0' is null or not an object" on line 68 of address-locator.php...Here's a link to the page: Address Locator (I've attached the files as well in a zip archive)and a sampling of the XML file I'm loading:
I have an array that is made and modified in a function. At the end of the function I want to have the array to be sent as a file to be downloaded to the user. How can I go about doing this?
Basically am working on the travel booking site,i written the lot of ajax scripts , so am little bit fear of that ajax ,becoz if some one tried to access anonymously So i dont want to user access or takeing my javascript fileTell me how to restrict the use get my javascript filecouple of days back i saw on site, in the i take that site js url , and when i typed on the Browser , the system say , you cant view this URL
I want to pop up alert when the user browse file into input for example I have this input: HTML Code: <input type="file" name="myfiles[]" /> Now, when the user finish to browse an file I want a function to start working, what I mean by finish browse file is when the user select file and than click on the file he selected twice and than when the browsing files windows close I want this function to start.
My requirement is to fetch data from xml file and show to user, again the user can add some new nodes to the existing file and save it. i want this to be done using html + javascript.
I have a site which requires the user to upload multiple images at once. Using jQuery I have set it up so that the user can select individuals individually (using the file browser) and then upload them all at the same time bty clicking 'Upload'. However, this is not really good enough...
What I need to happen is that when the user browses their machine to select their images, they are able to select multiple images through CTRL+click. At the minute they can only select one image at a time.
As I already have the upload process working perfectly, I would prefer that I was able to keep this intact and simply add some javascript which allowed multiple images to be selected by the file browser at the same time. I would also prefer, if possible, not to use flash.
I'm creating an AJAX user validation so that when a user types in a username, it checks it in the database to see if it exists. I want it to execute after the user finishes typing. I've tried using: $("#username_field").keyup(function(){ which works, but I don't want a query executed every time the users presses a key. I was wondering if there was a better way to do it. Meaning I what the check to be preformed after the user finishes typing.
I'm attempting to read in a user's weightlifting history from a database using a php file(viewworkout.php) to first run the query and then a js file to get the results from the query. the script below is all i have so far, and it
My Full code is::- ---------------------------------------------------------------------------- $(document).ready(function() { //First Method $("button").click(function() { var bid= $(this).attr('id');
I would like to add a z-index of 999 to each of the divs; .thumbs, .thumbs2 and .thumbs3 as and when they are selected by the javascript below. I would like the z-index to return to 0 when they are no longer selected.
I am using the autoupdate plugin. I have a listbox(asp.net control ) just below the autocomplete textbox. In IE6, the autocomplete menu goes behind the asp.net control. This happens only in IE6. It works fine in IE7.