I have a problem with a link containing Chinese characters that is send to a javascript file in Internet Explorer. Generally that link is created by PHP and looks like this in IE:
www.example.com/%E6%B7%AC%E7%81%AB%E6%B2%B9_ASIN5034CN.pdf
In firefox it looks like this:
www.example.com/淬火油_ASIN5034CN.pdf
Both work in that direct way. I ne...
ImageUrl='<%#Eval("Name","../Master Pages/DisasterImages/") %>'+'<%#Eval("Request.QueryString["DisID"].ToString()/{0}") %>'
DisID is a folder name.
What i want is to display the images in the directory.
I have done it using a repeater control.Problem is now i want to get the folder name in the Query String.How can i do this.Above is t...
I have a a set of yui buttons generated using the standard yui html.
<span class="yui-button yui-checkbox-button" id="analystbutton1">
<span class="first-child">
<button type="button" class="facetbutton" tabindex="0" id="analystbutton1-button">
Joe Bloggs
</button>
</span>
</span>
I create the butto...
hi,
I have created web application and textbox as a textarea.i am using javascript for validation.When i enter value in text box so it should be number not alphabet i have use textmode is multiple line.
My problem is that how i get multiple value from textbox and store in array in javascript and check each value is number or not.I a...
Hi,
I use this code to override the window.alert function.
The function replaces breaks by \r\n.
It works fine in Firefox, but ofcourse not in IE.
Im getting the error: Property or method not supported.
(function() {
var proxied = window.alert;
window.alert = function(txt) {
txt = txt.replace(/<br>/g, "\r\n");
return proxie...
Hello,
I am using a menu that switches from standard state to select state for an item by reading the current url
var where = document.location.href;
My issue is that when using Firefox, if I switch to some items from the menu (for instance, I click home, donwload, contact) and press the back button the url is not read correctly so ...
Hi there,
I tried to pass a string value into a JavaScript function like below:
<%= "'" + prop.property_description + "'") %>)
But it does not seems to be the best option, is there a better way to do the above without concatenate the string values with "'"?
Thanks
...
How to unset the session in PHP Using Javascript?
...
Thank you for your help.
My code looks like:
var CatItems = "";
for(var x=0; x < data.PRODUCTS.length; x++) {
if (x % 3 === 0) CatItems += '<li class="jcarousel-item jcarousel-item-horizontal jcarousel-item-'+[x]+' jcarousel-item-'+[x]+'-horizontal jcarousel-item-placeholder jcarousel-item-placeholder-horizontal">';
CatItems += '<div>...
Is it possible to run a user script before the page and DOM loads?
...
I can't believe it, but this is really happening. I ran out of available quote symbols using jquery and javascript native functions together. Can somebody help? Maybe there is yet another symbol?
var t=setTimeout('$("#popupChange").html('<img src="http://servername/pdf/picture/genericThrobber.gif" />');',2000);
EDIT: Firebug messages ...
hi
In my page one asp.net Textbox to enter the date.
I need to validate the textbox value ( dd-mmm-yyyy format) should be less than or equal to Current Date using Javascript.
validation using javascript when press on enter button.
...
Hi how should i iterate array of variables and reassign value to each variable. E.g in jQuery
function test(param1, param2) {
$.each([param1, param2], function (i, v) {
//check if all the input params have value, else assign the default value to it
if (!v)
v = default_value; //this is wrong, can't use v, which is ...
Hi,
I use h:selectOneRadio tag.
I need to set the cursor focus to first radio field.
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h:form id="focusForm" >
<h:selectOneRadio id="testRadioId" value="">
...
Hi,
I was wondering whether there's a way of using multiple selectors in jQuery and setting different values for them IN ONE CALL.
E.g.:
$(selector1, selector2, selector3, ...).css({left:[532, 112, 453, ...]});
Thanks in advance
Edited: Just to be clear you can only call .css once. Is it possible?
Edited again to clarify: I'm aski...
Hello everybody,
I have this function:
function emoticons(text){
var url = "http://www.domain.it/images/smilies/";
var emt = {
":D" : 'icon_e_biggrin.gif',
":-D" : 'icon_e_biggrin.gif',
":)" : 'icon_e_smile.gif',
":-)" : 'icon_e_smile.gif',
";)" : 'icon_e_wink.gif',
"';...
Hi,
I'm using jqgrid to display a list of sites and I want to do some server side validation when a site is added or edited. (Form editing rather than inline. Validation needs to be server side for various reasons I won't go into.)
I thought the best way would be to check the data via an ajax request when the beforeSubmit event is trig...
I'm writing a jQuery plugin and I would like my code to take advantage of the jQuery UI show(effect, [options], [speed], [callback]) and hide(effect, [options], [speed], [callback]) functions, which allow you to show and hide elements with a nice animation.
However, I'd also like my plugin to degrade gracefully if jQuery UI isn't availa...
I want to print the page (div) if there is no horizontal scroll appear for that div.
I have a div (1000px) with dynamic data which having property overflow:auto;. So, i want to print the div only if div's width is not getting crossed.
to achieve this i used following method of a javascript
var curr_width = parseInt(mydiv.style.width);
...