Hey guys,
For one of my assignments I have to make 2 different CSS style sheets and I have done that. Now in the assignment it says that if I want to I can link the two style sheets to just one html page, so I'm guessing that there will be two options to switch between the two styles.
My question: How do I achieve this? I heard that the...
Hello,
I have a wordpress site running the WP-Coda theme here, and have been working to create a page template. The link to the a page with the template is namastebella.byethost5.com/random (Sorry no hyperlink, can't post 2 as a beginner!)
The "fadethis" javascript function makes animated hovers on the top three links. It works on the ...
When the browser clicks "back" button, I want to append "&page=3" to the URL.
How do I bind it, and then do this?
Edit: I want this very simple.
BIND the event{
window.location(that-url + "&page=3")
}
Can it be done that simply?
...
I've implemented the AnythingSlider (http://css-tricks.com/anythingslider-jquery-plugin/) using image and video content (videos use the longtail flv player - licensed version 5).
Problem: When the user plays the video, the slideshow doesn't know this has happened, so the slideshow keeps cycling while the video runs. So you have the sli...
When the user goes history-back-1...how do I detect that? And then, alert "the user clicked back!"
Using binds (and jquery preferably)
...
Hello all:
I have a input control (a Text Box) which has some javascript events associated with it (change, keypress, select, click). The first time my page is executed, I type some value in this input control and then click on my button. This button executes some ajax code, send some info to a application server and it is OK. Also, the...
I've always been curious about this. Between the two code example which is more processor efficient? I understand that various languages may be different and I need to know what the answer is in PHP, but I am also curious about javaScript, CFScript, and ActionScript if the answer would be different.
Thanks
ps:The example may not be exa...
i love this plugin but the reality is that most people won't realize at first that they can click on the text to edit.
Ideally, it would be nice to add a Button next to the text or a simple [Edit] link that the user clearly sees but never gets submitted via ajax.
Any ideas?
...
How do I remove a class from an element? I see in the documentation there's an $().swapClass(), but I don't see a $().removeClass().
...
Scenario: I have a standard dropdown list and when the value in that dropdownlist changes I want to update another dropdownlist that exists in a tinyMCE control.
Currently it does what I want when I open the page (i.e. the first time)...
function changeParent() {
}
tinymce.create('tinymce.plugins.MoePlugin', {
creat...
I have an HTML form which consists of several fieldsets (each has identical fields). I want users to be able to add additional fieldsets by clicking a button (jQuery). I can think of two approaches:
Create a dummy hidden fieldset and clone it when the add button is clicked.
Create a function that renders the fieldset's HTML from a stri...
I have following HTML with two elements having the same name
<input type="hidden" name= "chk0" value="">
<input type="checkbox" name="chk0" value="true" disabled>
Through JQuery, I want to set the enable the checkbox. So, I am using something like this:
$('#chk0').attr("disabled",false);
But this doesn't work. I assume JQuery is ge...
any reference document
...
When I execute the following JavaScript function I receive the following error:
'2' is null or not an object.
The input from txtRawCardData element is a string containing ^ character which I split into an string array.
Update
I receive this error only when I run my jQuery code in Internet Explorer 7. I do not receive this error ...
I need to capture the event raised when a flash video ends. If possible, I'd like to distinguish this from a user clicking the stop button.
One thing to be made perfectly clear:
I DON'T HAVE CONTROL OVER THE PRESENTATIONS OR THE SWF FILES.
What I'm looking for is simple (I thought) js automation of the client player object, not more ...
I'm curious to if it would be valuable, I'd like to start using QUnit, but I really don't know where to get started. Actually I'm not going to lie, I'm new to testing in general, not just with JS.
I'm hoping to get some tips to how I would start using unit testing with an app that already has a large amount of JavaScript (ok so about 50...
in creating a button from an javascript object i am doing the following :
for (buttonName in buttons){
var htmlbutton = '<button type="button" onclick="'+buttons[buttonName]()+'">'+buttonName+'</button>'
}
I am trying to attach the function to an onclick event but i cant figure out the right sythanx
thanks in advance
...
The PHP and HTML syntax highlighting schemes in Notepad++ are generally pretty good at recognizing and highlighting JavaScript sections within a file, except that they don't recognize \ (backslash) as a JavaScript line continuation character, as in:
var legend = '<h2>Legend</h2>\
<ul>\
<li><img src="red.gif" />Sunday</li>\
<li><img ...
I'm writing a contact form in ASP.NET MVC. The user will have the ability to attach regular files (using normal file / browse functions) as well as the ability to search for a particular person and attach files related to that person. The first part is simple enough, but the second part is what's giving me headaches.
For the second part...
In order to highlight a certain p element, I've written some JS to make it appear above a darkened background.
In order to do this, I used jQuery to create an overlay, and then clone the information p element and absolutely positioned it over the overlay.
Because it dropped a few CSS properties (not being inherited because of the new p...