Hi
Is there a way to control a scrollbar's life depending on the browser size and the 'div' size at the same time in javascript or jquery. For example, if the 'div' content is overflowing then add scrollbar to div and if the browser is resized to a higher height then remove scrollbar from div, since it's gonna be stretched with the brow...
Hey..
I'm currently writing an application which uses ajax on the front end and ASP.NET (C#) on the back end..
A Small Part of the application does an AJAX call to the backend code (to get entries from the SQL database)
How can i prevent SQL of JScript injection?
I know it is generally unsecure to validate with javascript because jav...
Hi folks,
I have next date string:
"Thu Nov 14 0002 01:01:00 GMT+0200 (GTB Standard Time)"
and I'm trying to convert it to the Date object:
date = new Date("Thu Nov 14 0002 01:01:00 GMT+0200 (GTB Standard Time)")
=> Invalid Date {}
and it doesn't work. And
date = new Date("Thu Nov 14 2 01:01:00 GMT+0200 (GTB Standard Time)")...
A few years ago Dean Edwards brought us this workaround to the document.onload problem. The IE version of the solution involved appending this snippet to the document:
<script defer src=ie_onload.js><\/script>;
Dean was also pretty adamant on the fact that this was the closest solution to perfection he could find and dismissed any sol...
I am creating some dynamic textboxes through javascript, when postback is happening i am loosing the controls. I can't use Ajax instead of postback and i can't create dynamic controls from code behind.
Can anyone please give any suggestion about it?
...
Hello I'm having problems with a featured content area breaking the site in IE7 which is causing the splash to display above the content (as its also jquery).
<script type="text/javascript" src="/site/3/design/js/featurebar.js"></script>
<script type="text/javascript">
//<!--
jQuery( function(){ ModelIt.FeatureBar.init() } );
...
Hey, I'm looking for a way to take a black and white img element, and using JavaScript, specify an RGB value so that the image becomes that color. Any ideas (aside from libraries)?
Also I'm trying to do this with IE only. The reason I'm doing it in IE only is because I'm making a small sidebar gadget.
...
Hello. I have a web site where users register to access the content of the web site. I want to create a chat like Facebook. So when a user clicks on a button called "CHAT," it displays a list of users that are online, and so he can chat with other users. Please give me a suggestion how to create a chat like this in AJAX and jQuery. Pleas...
I've got the selector below:
$("#<%=GridView1.ClientID%> td:nth-child(5)").hover('doSomething)
Which is selecting the 5th td that is generated by a GridView. This is working fine.
My problem is I have paging enabled, and its also selecting the < Prev 1 2 3 Next > at the bottom, any ideas how to exclude this?
...
Hi,
I got this example from a blog, but every time I do this:
$(':input[name=' + inputName + ']').each(function(i, selected)
{
alert($(selected).text());
});
I got all an alert with all the options together :(
I have to search by the input name always, the inputs have no id.
Which is the right way to do it?
Kind regards.
...
hi
in my web page i am using google map script its working at first time of page loading within update panel but its not working when i click any server control like button(partial post back) so how can i fix this issue.
...
Is there any way to insert java-script function between the query ??
For example :: In an query, i have stored date of birth like this 10101990 in the database, it means 10/10/1990, but I have display it in-front of page but in certain format like 10.10.1990 by using one java-script function.
Please suggest me any way ??
...
I have an issue trying to make a function global when it is involved in closure. In the code listed below I have an anonymous method which defines at new function on the window called getNameField.
(function(){
function alertError(msg){
alert(msg);
}
window.getNameField=function(fieldId){
try{
if...
Hi,
I've tried the following with no success:
function a(args){
b(arguments);
}
function b(args){
// arguments are lost?
}
a(1,2,3);
In function a, I can use the arguments keyword to access an array of arguments, in function b these are lost. Is there a way of passing arguments to another javascript function like I try to d...
Hi all,
I have a problem in JS encoding and then decoding in the C# server.
I use javascript encode() function - but when i have special chars like +, the C# has httputility.urldecode() -> and it converts it as if it was SPACE char.
What is the best way to communicate JS encoding and C# decoding?
I have <a href='javascript:foo(escape(...
I'm moving my script references from < head> in the master to bottom right before < /body>.
This has caused some problems with my load order.
In my master I have a ContentPlaceHolder, and I can use this fine from my Views to add additional javascripts.
But how can I add javascripts to this section from a PartialControl?
If I just inc...
Hi all..
In my aspx page i am having a checkbox list ..It has binded values from a table..
I need to validate the checkbox list ..I tried the following script
var checkBoxCount = 0;
var elements = document.getElementById('<%=ChkBoxList.ClientID%>');
for(i=0; i<elements.length;i++)
{
if(e...
I'm trying to find a way to to property overloading like it's done in PHP: http://www.php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members
i.e.
var myobj = function () {}
myobj.prototype.getProperty = function (propertyName) { console.log('Property Requested: ', propertyName); }
var otherObj = function () ...
I need to problematically (do you mean programmatically?) check a radio button given its value. The form has an id and the input type obviously has a name (but no id). The only code I managed to get working so far is:
$('input[name=my_name]:eq(1)').attr('checked', 'checked');
But I'd like to be able to check it by explicitly providi...
I need to publish landing tab wall posts of a page on my website using php and javascript,can anybody tell me how to implement this ,as i thought it can be done with FQL via page table but there is no any related field i found.
thanks
...