So I have this IFRAME in my web page, the iframe has a login page (this is part of my domain) but then after the login the iframe redirects the user to an external site (not in my domain) but still is inside the iframe but without the option to right-click (disabled in the HTML code of that external page).
I can enable the right click i...
Hi!
I have a string "foo_bar" and "foo_foo_bar". How do I remove the last "_bar" from the string? So I'm left with "foo" and "foo_foo".
Thanks
...
How to iterate the installed fonts using javascript?
...
I have created a variable length list according to the many great posts by Steve Sanderson on how to do this in MVC 2. His blog has a lot of great tutorials.
I then created a custom "requiredif" conditional validator following this overview http://blogs.msdn.com/b/simonince/archive/2010/06/11/adding-client-side-script-to-an-mvc-conditio...
I am not sure if Wordpress has API to upload file but what I am looking for is very simple:
Context: I have another plugin that I need to modify so that user can upload file in the Admin area of that plugin
Solution:
1. Rewrite a new upload thru some specific path. This has nothing to do with Wordpress. I am fine doing this.
2. I prefer...
i'm trying to dynamically set a metatag to the head of my document. This is a mobile device specific metatag that I need to add through code. I found this solution here:
http://stackoverflow.com/questions/2831529/having-trouble-using-jquery-to-set-meta-tag-values
but it doesnt seem to work, what am I doing wrong?
function setOrCreateM...
Hi i want to get radiobutton value using jquery. This is the radiobutton code. The period[count] naming is because the radiobutton is loop in array using javascript
<input type='radio' name='period["+count+"]' value='1' checked/>Full<input type='radio' name='period["+count+"]' value='0.5'/>Half (AM)<input type='radio' name='period["+cou...
I don't understand why, but this code gives me a JavaScript error:
<script type="text/javascript">
String.prototype.format = function(values) {
var result = this;
for (var i = 0, len = values.length; i < len; i++) {
result = result.replace(new RegExp("{" + i + "}", "g"), values[i]);
}
return result;
};
alert("H...
Inside a function, I've got:
var myType;
if ( $(this).is(".whatever") ){
myType = typeOne;
} else if ( $(this).is(".something") ){
myType = typeTwo;
}
This works fine. However, I want to turn this into a separate function that I can call, since I use it in several different places. The function I write is:
function setMyType(){
...
I'm learning javacript, and I'm about at the point where I want to start doing some asychronous stuff. Here is the gist of my quest:
I have HTML code that looks like this:
<a id='nine' onclick="SendToServer('nine');">Nine</a>
I then want a way to, in Javascript, send back to the server that a#nine was clicked.
function SendToServer...
Hi
I'm trying to print some Japanese to a page dynamically using jQuery, and it display nothing recognizable. I don't know what went wrong, I reduced the code to the most straight-forward, and it doesn't fix it. Or maybe it's just me being thick.
I use:
$('body').append('<p>日本語</p>');
Which should work, right?
And I get:
日本語...
var str = 'asd-0.testing';
var regex = /asd-(\d)\.\w+/;
str.replace(regex, 1);
That replaces the entire string str with 1. I want it to replace the matched substring instead of the whole string. Is this possible in Javascript?
...
Hi
I want to do a image slider in my dotnet nuke project. Ie want to display image one after other. Is there is any free module for that? or
Is there is any way to display(one after another like slide show) all the images from a folder using java script or jquery?
Thanks in advance
...
I want to get the value to of drop down list, to send back to server to match something.
Update:
Sorry, i has to be clear on my question. I am using javascript to get values in client side and sending those back to server with DWR & processing them with JAVA code.
<select><option selected="selected" value="1">EEE</option><option value...
I had set up Galleria Plugin successfully. But the problem is that the thumbnails for each picture is not generating. My Code is below
<div id="galleria">
<img title="Image title" src="images/1.jpg">
<img title="Image title" src="images/2.jpg">
<img title="Image title" src="images/3.jpg">
<img title="Imag...
I want to know that when we have a function with parameters that
works like a VB procedures
When and how can I use this function ?
How can we call this ?
<script type="text/javascript">
function place(div, image_x, image_y )
{
$("#"+div).css("position", "absolute") ;
$("#"+div).css("left",image_x+"px");
$("#"+div).cs...
Hi All,
Input : Korean or japanese language
Browser : IE
<textarea name="arg02" id="w400px" cols=28 rows=4
onKeyDown="textCounter(this.form.arg02_ScanEmailBody,this.form.remLen,500);"
onKeyUp="textCounter(this.form.arg02_ScanEmailBody,this.form.remLen,500);">
valuefrom DB
</textarea>
My limitation is to be allowed only 500 in ...
Hi,
I am trying to figure out the best way to acompish "unobtrusive" forms for a user (within a web app).
The purpose: keep user on the site by not asking to fill unnecessary form in. Ask for the details as only when such are needed.
The requrements are:
User should provide additional details only when it is required (email to recei...
i have set up jquery galleria successfully. But what i want is to set up the first image loaded on the galleria dynamically. i.e., consider there is five links as one,two,three,four,five. when the user clicks the link three, the galleria will appear and display the gallery with THIRD image atfirst
plz help.
...
I want to find the order of the <li> the user has clicked. For eg.,
<ul>
<li id="li1">This is list one</li>
<li id="li2">This is list Two</li>
<li id="li3">This is list three</li>
</ul>
When the user clicks on the list item 2, then i had to retrieve the id of that item as li2. How to achieve this, plz help
...