I have a some data which is displayed in div body now i want to import that div content in excel format so how can i do this using javascript/jquery or even c#
which returns <div>here</div><script language=javascript>alert('');</script> The content gets loaded property, but no alert. How would I get a javascript routine to work from an ajax call along with posting the HTML code?
I'm starting to learn jquery widthout knowing javscript.someone told me that I don't need to learn javascript before learnig jquery.But I seen many people (in the internet) said that I must learn javascript well. to start learn Juqery?so do I must to learn javascript before jquery?
I am currently looking a valiadation controls in javascript and ASP.NET and have come across the new MVC "jquery.validate.unobtrusive.js" which appears to use the data tags in the HTML to do the validation, is it possible to use these in standard ASP.NET (none MVC) as my logic seems to indication you can (by adding the appropriate data tags) but I can't find any referrance to using the library outside MVC
I am trying to get the value of a CheckBoxList ( ASp control) with the help of Javascript.Here value means the datavalue not text. the main problem with this control is that it does not show the value on the client side and that is why I cant fetch the value.if this is not possible then it ia very big problem with the Control.
I will have a widget on a remote page. In the widget I want javascript or jquery to get all the article content from the webpage and send it back to my website. I only need just the article content and not all the other information on the webpage. I would like the script to send the remote webpage url, page content, title text, and h1 text. I would not like to receive any html tags. Is this possible to do?
The script I am making is like google adsense. Also, Ill be using c# as my backend server
will something like this work? http://blog.nparashuram.com/2009/08/screen-scraping-with-javascript-firebug.html
I would like to know what are the best practices in using Javascript in ASP.NET in a pre-AJAX and pre-jQuery era. What I meant by pre-era is not the time before AJAX/jQuery was created, but rather the time before it is popularized and widely adopted (by a significantly large number of programmers).i.e. Is it good thing to store the script in a string variable and register it on demand (RegisterClientScriptBlock) or on startup (RegisterStartUpScript)?Although in using Javascript in ASP.NET, its usage in PHP and JSP are also welcome.
I am looking for a way of graphically showing a countdown. I am working for a large Hospital and have written an Ambulance page that shows ambulance arriving in a datagrid with the time of arriving at the hospital in minutes and seconds (plus other info).They have asked me for somehow visually representing the information, so it fits with there other visually appealing Emergency Department web application (e.g. progress bar or something better):1) Can somebody show me (visually appealing) design examples on how this could be done2) Are there solutions in .Net (ASP.net or JQuery or Javascript) since this is our preferred technology
I have a keyboard-controlled menu which I did with jquery (When I press down, it marks second option and so on...)
But after I select the option I need, I want to click enter to call the button's OnClick method as if the user really clicked it. Which means I have to do a postback.
I had thought that returning false would keep my asp.net OnClick even from firing, but it still does. I've confirmed that it is getting to the return false section of code using alerts. Is there anything I can do to stop it from firing using jQuery/javascript?
I using jQuery-UI sortable which works fine. The problem that I am having is that the message "New order saved!" or "Save failed" is not displaying in the < p > area. The function is either not executing or something.
To force a prompt with normal javascript, I could wire the OnClick event for my save button to be something like this (I could do this in Page_Load):
btnSave.Attributes.Add("onclick", "return confirm('are you sure you want to save?');");
The confirm call will block until the user actually presses on of the Yes/No buttons, which is the behavior I want. If the user presses 'Yes', then my btnSave_OnClick method would be called.
For the jquery dialog that is the equivalent, I tried something like this (see below). But the problem is that unlike javascript confirm(), it's going to get all the way through this function (displayYesNoAlert) and then proceed into my btnSave_OnClick method on the C# side. I need a way to make it "block", until the user presses the Yes or No button, and then return true or false so the btnSave_OnClick will be called or not called depending on the user's answer.
Currently, I just gave up and went with javascript's confirm, I just wondered if there was a way to do it.
I want a similar behavior of "confirm delete" option in ASP.Net Gridview, as this questions shows How to add a "confirm delete" option in ASP.Net Gridview ? but using Jquery Confirm Box.
I'm having a lot of problem with postback behavior and asp.net page flow.
Suppose I have an url like [URL} I can retrieve the 'form' value in code behind like Request["from"].How can I do the same using Javascript?Can I do this using Jquery also?If yes how can I do this?
i want that when a checkbox is checked then it should allow user to write something in a txtbox. initially the txtbox is disabled. what i should write inside the function using jquery
We are using asp.net and c#3.5 implementing a website using quite a lot of jQuery. We would like to download an img from the browser window, but (and here's the trick) in a button click (in addition to right click save as)...
Before we get into it, I should state that we know that this is an img tag and from the front end, we can easily download the image using right click save as. The only reason we wish to download the image from a (say) button click is because across the site we have download buttons for downloadable content (like datatable to excel files and pdfs, etc) and we would preferably like to keep the standard across thewebsite.
We are producing graphs using Microsoft Chart Control which renders the graphs to the screen pretty well. This renders an image to the screen as shown below in an example (using Firebug)
There is a known bug with MS Chart Control that if you store the image in session variables or memory, that the image is only accessible once and not persisted. Described here
We don't have a physical location for the image when it is created (and most often the Chart Control destorys the image).
What we need is some client side method of downloading this image content from the screen as it is rendered, but without having access to the physical image at the back end. We do not want to use the chart control property:
I have a hquery plugin that consists of jquery itself, 2 .js files and some script to configure the plug-in which resides on the page. I noticed that in .net you can create a .js file.What I would like to do is put the configuration inside a .js file created in .net, but how do I then reference this in the header of the page?am I over complicating the issue or just missing something?