I have a ul with around five <li> items. E.g.
<ul>
<li>Step 1 : Take food</li>
<li>Step 2 : Go Around</li>
<li>Step 3 : Deliver</li>
</ul>
Also I have links like
<a href="# id="prev"> Previous</a>
and
<a href="#" id="next"> Next</a>
I have to show the first li at first. Then when the next link is clicked, it should now ...
I have the following code:
set_cookie('visible','no',2020,1,1,'/','.domain.net');
Rather than specifiying the domain I need the domain to match which ever domain the script is being run under.
Im trying to use: (document.domain)
How can I combine the two bits of script so that '.domain.net' becomes what ever domain is being accessed...
Possible Duplicate:
Determine original name of variable after its passed to a function.
I would like to know if its possible to get the actual name of a variable.
For example:
var foo = 'bar';
function getName(myvar) {
//some code
return "foo"
};
So for getName(foo) will return "foo"
Is that possible ?
Thanks.
...
I use the following code to hide and show a box on a bunch of search results. Each result has its own toggle and box to show and hide. The problem I have is that clicking any one of the toggles will show and hide ALL of the boxes on the page and NOT just the box for the one result. How can I do this?
Thanks
jQuery(document).ready(funct...
Im trying to show a datepicker inside a Modalbox. I tried almost everything. Changed the zindex to a higher number then the modalbox, also loaded the datepicker after showing the modalbox, but nothing.
Any known issue with this? Suggestions?
Thanks
...
I am developing a SilverLight application wherein on browser close event, i need to do a web service call. I have a web service method which accepts one parameter. When the user clicks on browser close event. I'll be calling the doRelease() function. the releaseuser method requires a parameter usertoken.
I got an error when I'm calling ...
My page conisits of x amount of forms. One for each database entry. The user can change the data and save the individual item back to the database.
But where I am stuck is with a SAVE ALL button. Can you post multiple forms?? I am pretty certain you cannot with php, so I'm looking at javascript to solve my problems. Specifically:
docum...
Hello. I've got http handler, which returns file, by post parameters:
public void ProcessRequest(HttpContext context)
{
string user = HttpContext.Current.User.Identity.Name;
FilePermissionHelper helper = new FilePermissionHelper(user);
string path = context.Request.Form["file"];
bool canDownload =...
I am trying to replace the JavaScript onclick event handler in ASP.NET that is added to a button control when using validation controls. This is what is output into the HTML from ASP.NET in this scenario:
<input type="image" name="ibSubmit1" id="ibSubmit1" src="button-green-submit.gif" onclick="showProgress1();WebForm_DoPostBackWithOpti...
I have the following JavaScript to get a random image from a list of available images:
<script type="text/javascript">// <![CDATA[
var image = new Array();
var link = new Array();
image[0] = 'http://www.ovlu.li/ornitholog/cms/images/gallery/schwalbenhaus/schwalbenhaus01_small.png';
image[1] = 'http://www.ovlu.li/ornitholog/cms/images/...
Say I have the following JS:
var foo_index = 123;
var bar_index = 456;
And the following HTML:
<div id="foo"></div>
<div id="bar"></div>
Then I'd like to say this:
thisIndex = this.id + '_index'
And I'd like thisIndex to be a number. How do I turn the string, which is exactly the variable name, into a variable?
...
I have 2 textboxes which has default values in forecolor:#999999. If I click on the textbox, the default value should clear and the forecolor should change to black. I mean, like watermarking. But I am not using any Ajax. need help...please...
...
I want to lock other threads when one thread is running. It is possible in .Net with a lock object. I need do the same in AJAX.
function f_OrnekleriGetir(bKaydet) {
var ddlKlinikId = "<%=ddlKliniklker.ClientID%>";
var iKlinikId = $("#" + ddlKlinikId + " option:selected").val();
var arrOrnekNolar = new Arra...
Hi, I have just packaged my plugin for TinyMCE to distribute it along with Plone.
But how to tell TinyMCE in Plone to use my plugin? I checked site setup / addons / tinymce - there are some options for buttons, styles etc - but I don't see anything related with plugins.
Update:
The question is how to configure it using Plone, not plai...
I am having a problem with this page in Firefox (Chrome and IE seem OK):
http://beta.vomero.co.uk/Guestcomments.aspx
When the page loads, Firefox jumps to position the rich text box (CKeditor) at the bottom of the page.
I don't think this is related to the jQuery Accordion because if I add rich text boxes on other pages the same jump o...
If i have a button pressed method like this:
$('#next').click(function () {
});
How can i stop this method being initiated whilst its running. Say the method takes 5 seconds to run and someone clicks it 3 seconds in it breaks so i want to make the div thats being clicked unclickable while the methods running.
...
I made a website using the famous symfony framework. I wanted to add rich editing feature to it. And I found TinyMCE editor. But there comed a problem: how about the user embed some javascript code into the content? such as alert('hello world').
I tested wordpress, which is a very famous blog software. It faces the same problem. example...
I have come across this website:
http://www.fetchak.com/ie-css3/
It seems to work when I enter the URL in my IE6, then the "cat" in the picture further down has a "shadow" effect around it.
However, I follow instructions but can't get it to work.
I have a php file, which dynamically outputs images of classifieds.
These images has a c...
Hi,
I am working with dates in an RSS feed, but am finding differing results when using the code below in IE, Chrome and Firefox:
new Date('2001-01-01T12:00:00Z')
Firefox is happy with that, but Chrome and IE return Invalid Date.
I thought I'd try replacing the T and Z as follows:
new Date('2001-01-01 12:00:00')
This time Chrome ...
I have a web page,with a text input which a user will enter some text. There is a hidden input element on the page that stores the values submitted,so as a user keeps entering values , they will be appended to the hidden input element, I then use the value stored here to output all values entered to the user, see the code below
<SCRIPT ...