I need a javascript bookmark to take the url I have in the clipboard parse out the 2 numbers and create a new url, and add a link to the top of the page, that when clicked adds the url to my bookmark menu.
Say I have url's like these
http://www.website.com/frontpageeditor.jhtml?sectionID=2844&poolID=6276
javascript:getPoolPageUrl(9800...
I want to reformat the contents of an HTML form-field when submitting.
For example: The user enters "1.234,56" (which is a valid format for numbers in this locale), but I want to submit the value "1234.56" to the server.
I'd like to hear about other peoples experience with this. How do you do this?
My first thought is an onSubmit-even...
Hi,
I have a rather pesky problem when trying to add a confirm popup message to the onclick event of a button.
The problem occurs when trying to break the message onto a new line so the test wraps within the pop up window. If the \n is taken out of the string the code works fine.
string confirmationMessage = "text text text text text...
Hi All!
Is there any way to get the current time for a particular timezone (ex: var currentTime=getCurrentTime(timezoneId) where timezoneId="alaska" or Eastern Time), including Day Light Saving in javascript.
...
What is the difference between the JavaScript functions 'decodeURIComponent' and 'decodeURI'?
...
Given two URLs, how can I resolve one of them against the other? I'm trying to emulate Java's URI.resolve(), which does not exist in GWT's emulation library. I've had to implement this manually, which, as you might expect has been very error-prone. Is there a GWT or Javascript library for resolving or normalizing URLs?
...
Hello, in new in ASP MVC im reading some examples and looking on internet, i think its not so hard once you jump into it.
im a webform programmer but i want to use MVC for internet applications and Webforms for Intranet Apps.
im looking the way of populate more than 1 table in MVC, because the method only allow me to return One ModelVi...
Since I installed IE8 (Win XP) Visual Studio 2008 Pro stopped deebugging javascript.
When I set a breakpoint on a line javasscript code and start debugging , I doesn't get hit anymore. This worked well when I had IE7 installed. The code hasn't changed. There were no other system changes performed at the same time.
How can I solve this ...
Right now the library can translate this operation
Select * from List where name = k% order by desc
to
List.filter(function(x) { return x.first_char() == 'k' }).sort().reverse());
Whats the best hack to remove the () so that the developer can write statements like:
List.filter(fn(x) { return x.first_char == 'k' }).sort.reverse;
...
I am trying to pass multiple Eval() arguments to a JavaScript function from an .aspx file, but I keep getting compiler errors. I am new to JavaScript and have never really used Eval() before. Where am I going wrong?
NB: The line shown below is actually all on one line, but is wrapped here for clarity:
<asp:LinkButton runat="server" ...
I am building a little HTA for personal use, and would like to be able to drag and drop a file to the interface. Once the file is dropped, I would either automatically run it (assuming it fits some parameters I set, like file extension), or at least fill in the input box on the HTA interface.
I've searched extensively, but can't find a ...
how can i search an html page for a word fast?
and how can i get the html tag that the word is in? (so i can work with the entire tag)
...
The code which I am analysing
var id = $(this).parents('div.answer').attr('id').split('_')[1];
I have searched unsuccessfully documentation for the method parents in Google by
Javascript "parents("
and by
Java "parents("
How can you find the documentation for the following methods in JavaScript?
parents()
attr()
split()
...
Hello all. I've spent the past few days working on updating my personal website. The URL of my personal website is (my first name).(my last name).com, as my last name is rather unusual, and I was lucky enough to pick up the domain name. My e-mail address is (my first name)@(my last name).com. So really, when it comes down to guessing it,...
How to get all element parents using jquery? i want to save these parents in a variable so i can use later as a selector.
such as <div><a><img id="myImg"/></a></div>
GetParents('myImg'); will return "div a" something like that
...
Is there any way to grab any information from the top from within an iframe on a separate domain? Somebody has tasked me with validating that their advertising is not next to things like pornography, etc... but their ads are always inside an iframe on publisher sites.
Interestingly, when I put twitter.com in an iframe, they have iframe...
In jQuery, the map and each functions seem to do the same thing. Are there any practical differences between the two? When would you choose to use one instead of the other?
...
I would like to be able to pull some code samples out of a database and/or have the text embedded into the website and then have the sample formatted in a code like fashion on the screen. While the text alone on the screen is great, the format will make it more user friendly. How is this done?
I want this:
public string MyString = "T...
Is there a 3rd party add-on/application or some way to perform object map dumping in script debugger for a JavaScript object?
Here is the situation... I have a method being called twice, and during each time something is different. I'm not sure what is different, but something is. So, if I could dump all the properties of window (or ...
I have a short intro text inside a box, if the user wants to read futrher he can toggle a hidden div element that shows the rest of the content. Under this intro box I have some other element, which I always want to stay in that position.
I want the toggled text to 'show above' the fixed content, and I don't want it to push downwards whe...