Hello,
I have a sentence structure along the lines of
[word1]{word2} is going to the [word3]{word4}
I'm trying to use a javascript regex to match the words for replacement later. To do this, I'm working towards getting the following multi-dimensional array:
[["word1", "word2"],["word3","word4"]]
I'm currently using this regex for ...
Apologies if this is a silly question, and I'm not even sure of the best way of wording it...
At the moment I have a site with maybe 20+ different uses of jQuery, all varying from page to page. I'm just wondering what the best way is to store this code?
Everything in one big jquery.myfunctions.js file? And check if the element exists ...
I have a button that, when pressed, will add a new HTML row. Within these rows are two combo boxes: cboOffsetGroup and cboOffsetType. Depending on what is selected in cboOffsetGroup, the options for cboOffsetType will change. I do this using a refreshPage() function in Javascript. It works fine in the first row, but in the subsequen...
I have a page where I load a table of information using ajax. Once the table is loaded I use jquery to wire up some event handlers on the table's rows.
From that page it's possible for the user to refresh that table. My jquery code to refresh the table looks something like this:
$.post("/myurl", { id: 0},
function (d)
...
I currently have a function that grabs the browser windows uri, parses out the variables and assigns them to a variable. This is great but I would like to extend window.location to store these. Here is the code I have but it doesn't appear to be working. Can someone explain why or how to do this?
window.location.prototype.parameters = f...
I'm looking for a good menu's picture generator that based on photoshop script.
It should be have an .psd file as input. the .pas file will contain the form of the menu item in the following modes: hovered, unovered and selected. Each mode defined by hiding and showing a few layers. The text layer will contain a 'placeholder-text' that ...
I'm having an issue with the RadEditor for MOSS, I'm really baffled as to the source of this issue. I tried using Firebug to find where any min-* CSS settings are happening and search came up empty, but I know it's happening because the downloaded page markup does not have that inline CSS.
I believe that one of the Telerik control emitt...
I know in jQuery 1.4.x there is a method delay(). We can use it like this:
$('#block').slideUp().delay(2000).slideDown();
and it works great. But i want to modify document.title, but this construction doesnt work:
$('title').html('New title 1').delay(2000).html('New title 2');
when you run this code title will be New title 2 avoid ...
Tried to search online, but does not look like I can formulate search query properly.
So as simple as it sounds, how can I, either with jquery or just javascript list all the handlers or event listeners that are attached to element(s)/document/window or present in dom.
Just wondering.
Thank you in advance.
...
I have developed a web application (ASP.NET Web Forms). One of my customer has very restrictive policies. When he accesses the web page, IE shows this message:
Your security settings do not allow Web sites to use ActiveX controls installed on your computer. This page may not display correctly.
As far as I know, we don't use ActiveX con...
I've got a single HTML element that contains a number of words:
<p>foo bar test test bar foo</p>
My user will use their mouse to highlight a selection of one or more words, for example the second word bar.
Does Javascript have a method that can identify where the selected word(s) exist? Ideally I'll learn that word number 4 was sele...
Im designing my school's website and I kind of want to do like a "What are you looking for" page with only an input box where people can enter in phone or something and it would be completed with autosuggest (got that part ok). Then when the user clicked go, the button would take them to the page defined by the search so it would go dire...
I want to let the user resize the headers (width) of an HTML table in a similar way Excel does. I know there are JS frameworks and widgets that support it, but we use and old widget server library (Common Controls) and I would like to add this support in a simple way, to already existing tables.
I was thinking in a Javascript object th...
I'm running some tests with Silk and it keeps throwing this error "void 0". Does anyone have any idea how I can stop this code from executing?
My platform is XP SP3, and FireFox 3.6.
Anyone have any ideas?
...
I'm using cufon for font replacement with jQuery for a site built on-top of drupal with a couple modules that tack on its own JS files. There seems to be a flicker in the text that I have cufon applied to. I'm profiling my JS in firebug and it looks like cufon is taking forever to load.
A couple things that I've tried:
adding cufon....
When would you set window.location to a URL string versus setting window.location.href?
window.location = "http://www.stackoverflow.com";
vs
window.location.href = "http://www.stackoverflow.com"
Reference: https://developer.mozilla.org/En/DOM/Window.location
...
I've been given some project requirements that involve (ideally) returning a list of CSS selectors based on highlighted text.
In other words, a user could do something like this on a page:
Click a button to indicate that their next text selection should be recorded.
Highlight some text on the page.
See a generated list of CSS selector...
Basically I want to create one large object of many object in JavaScript. Something like:
var objects = {}
for (x)
objects.x = {name: etc}
Any ideas?
...
I am stuck with using Dojo to accomplish this. Basically what I am trying to implement is an AJAX feature where a user adds a comment to a blog post and it is immediately displayed.
So I'm to the point where I have the dojo.xhrPost receiving a chunk of html that needs to be added to the list of comments. Now I want to slowly fade in the...
I am using YUI's datatable (http://developer.yahoo.com/yui/datatable/) to make a table. But notice something very wrong...sometimes, there is a line that appears on top of a result, only in IE7.
This may or may not be related to the YUI plugin. Does anyone know how to fix this? Thanks.!
Edit: For some reason, it only appears at that p...