Basically, I want to do "zipzam&&&?&&&?&&&" -> "zipzam%26%26%26?&&&?&&&". I can do that without regex many different ways, but it'd cleanup things a tad bit if I could do it with regex.
Thanks
Edit: "zip=zam&&&=?&&&?&&&" -> "zip=zam%26%26%26=?&&&?&&&" should make things a little clearer.
Edit: "zip=zam=&=&=&=?&&&?&&&" -> "zip=zam=%26=...
To make a long story short I have to use processing in a class and I'm completely blind. The ide is completely inaccessible so I use the JavaScript version of processing to create a page and have a sited person describe the output to me. Unfortunately if the code has errors the page appears blank and there is no explanation of what’s wro...
After trying to understand why client code is not rendered in a page (injected by user control) I found this link, it turns out you must have a form tag for it to work (Page.RegisterClientScriptBlock did declare this but ClientScriptManager.RegisterClientScriptBlock which I use does not say anything regarding this).
I am using Visual stu...
I'm trying to create a PDF document with several text fields that can grow in height up to some maximum value. Due to the constraints of the project, I'm using Adobe Designer 7, which happily allows Javascript. However, the objects in XFA are a little different from the HTML DOM or earlier PDF DOMs.
So, I know for certain that my field...
Quick question,
If I want to document some code on a basic HTML and put that within a CODE tag, how can I quickly convert the code between those tags when the page renders to display properly? I know I can write a javascript find and replace and search through the string over and over until its done replacing all the characters, but is t...
I inherited a customer after their programmer passed away. They have 4 commercial sites running what I believe is Adobe Go Live code from what I’ve found on Google.
This works perfectly as long as all .asp scripts and the images directory is off the web’s root directory. I needed to move the ‘store’ scripts under a ‘store’ sub director...
I'm working on implementing sprited buttons in Stackoverflow's beloved WMD markdown editor and I've run into an odd bug. On all versions of IE, the selected text is lost upon button clicks, so, say, highlighting a block of text and clicking the code button acts like you placed the cursor at the end of the selection and clicked the butto...
The Script Resource and the Web Resource files are generating intermittent errors in my application. I have been trying to chase the cause of the problem but to no avail. I notice that the “d” parameter that is passed is some how corrupted and I can’t for the life of me figure out what’s causing this parameter to be corrupted. I noticed ...
i want to use an asp:LinkButton, since it looks like a link, but has server-side Click handler.
But the web-server seems unable to detect if javascript is disabled on the client, and doesn't render into a mechanism that still works.
Is it possible to have a link that looks like a link, but has server-side OnClick event handler?
Answ...
Here's what I'd like to do: I've got a line of text in an HTML page. I'd like to have that piece of text start at a given color, cycle though the spectrum, wait a second or two, and then repeat.
I'd like to do this in javascript if possible (something like flash isn't totally out of the question, but would be some major scope creep of ...
What is a JavaScript or jQuery solution that will select all of the contents of a textbox when the textbox receives focus?
...
This is a followup question to this question:
select all contents of textbox when it receives focus (Javascript or jQuery)
basically I am using a textbox in conjunction with the jQuery masked input plugin
When the masked input textbox receives focus i want to select all of the contents of that textbox, but it seems as though having th...
I've been programming for the Web for quite some time now, but have only just recently discovered a few new intricacies regarding the use of functions and the weird (or so I view them as) things you can do with them. However, they seem at this point only to be syntactically pretty things. I was hoping somebody might enlighten me as to ho...
I was sitting here wondering if it's possible to write a greasemonkey script that would detect sites like payperclick and mute the audio so the ad isn't heard.
I realize that I could accomplish the same thing in a better fashion by simply removing the ad text through a greasemonkey script but for purposes of curiousity, I wondered if yo...
I'm trying to make a autoscrolling/carousel like function for an unordered list of images.
When you mouse over the containing div its calling a function that's job is to animate the margin on the <ul>
$(".thumbs").animate({"margin-top": (currentMargin - 10) + "px"}, function(){
console.log("margin-top" + (currentMargin - 10) + "px...
Hi. My question basically goes back to this: Scrolling Overflowed DIVS with JavaScript
I want to know how to do that without using jQuery. Any help would be appreciated. Thanks in advance!
Also: in the linked question, does it scroll the div down one full scroll height each time the code is executed? If so, how can I make it scroll dow...
Are there any documents/tutorials on how to clip or cut a large image so that the user only sees a small portion of this image? Let's say the source image is 10 frames of animation, stacked end-on-end so that it's really wide. What could I do with Javascript to only display 1 arbitrary frame of animation at a time?
I've looked into th...
What is the best way to handle several different onload scripts spread across many pages?
For example, I have 50 different pages, and on each page I want to set a different button click handler when the dom is ready.
Is it best to set onclicks like this on each individual page,
<a id="link1" href="#" onclick="myFunc()" />
Or a very...
I've got a <div> that needs a gradient background. However, the size of the div is variable, which lands me back in "can't do gradients in CSS" land.
However, I'm pretty sure this is possible in jQuery, I just can't seem to find a decent example. Does anyone have something they can point my way?
Thanks.
...
this.String = {
Get : function (val) {
return function() {
return val;
}
}
};
What is the ':' doing?
...