javascript

How do you get querystring using YUI 2 ?

I need to get the a parameter passed via a querystring. I need to get the value of the parameter and then use it in some javascript. In my specific example, I am using the "tabview" object and would like to set the "selected" tab by getting it from the querystring. The querystring would be something like this http://www.myserver.com/pa...

iphone browser moving itself

Hello guys. I am making iphone application with Xcode. I create a webView to load a web page. I load the following link: http://devfiles.myopera.com/articles/649/example3.html If I open that link by browser on computer, we can draw by mouse. But on iPhone, the browser itself screen is moving. So I can not draw on it. Please tell me ...

DJANGO ImageKit Functionality

I'm putting together a very basic time-lapse sequence of images (about 120 images total). I've installed imagekit, adjusted the specs.py file to my needs, populated the database with "pointers", imagekit has generated thumbnails.....all is well. my views.py includes: def pics(request): p = Photo.objects.all() return...

How to use jQuery .live() with ajax

Currently I am using John Resig's LiveQuery plugin/function - http://ejohn.org/blog/jquery-livesearch/ - to allow users to sort through a long unordered-list of list-items. The code is as follows: $('input#q').liveUpdate('ul#teams').focus(); The issue arises when I use ajaxified tabs to sort the lists. Essentially I use ajax to pull in ...

javascript and thickbox

Hi, I have a thickbox appearing and have created a button which points to a new URL. I want it to work in the following way: 1. Click the button 2. Close the thickbox 3. Set parent window to new url. I have succeeded in closing the thickbox but cannot get it to open the new url. The code I'm using is as follows: a onclick="javascript...

Calendar date help

Hey all, I've been trying to figure out how to go about this problem i have encountered. I need to figure out a way to check what day was chosen on the calendar and see if anything surrounding it is un-clickable. In other words, if a date is disabled after the selected date then it can not go any farther. Here is an example: Say its Ma...

How to pass variable from JavaScript to PHP using jQuery POST

I am passing the variable sessionnum from the following Javascript function in the page chat.php: $(document).ready(function(){ timestamp = 0; updateMsg(); $("form#chatform").submit(function(){ $.post("backend.php",{ message: $("#msg").val(), name: auth...

Execute an ASP.net method from JavaScript method.

I have a javascript method looks like this JSMethod(JS_para_1,JS_para_2) { ...... ,,,,, } and I have an ASP.NET method like this ASP_Net_Method(ASP_Para_1,ASP_Para_2) { .... ,,, } Now I want to call this ASP_Net_Method from my JSMethod by passing some parameters over there.. ...

Programming of TV, replicatable in Drupal / Javascript?

I was watching TV and wondering what programming languages get the continuous digital video to the TV. I am assuming it is on the receiver. But the major question is that could this be reproducible using JavaScript (JQuery) or Drupal? And to be clear, the end result would be a site that simply displays continuous video in full screen t...

What is vertical tab, form feeds and backspace character? How to use them in JavaScript?

Hi guys, I want to know what is vertical tab, form feeds and backspace character and how to use them in JavaScript? Or is there any chance I have to(should) use them? ...

How to use the textbox value to fetch the records and to display it in the same page

Hi, i am having a Form like <script language="javascript" type="text/javascript"> function formfn() { var str = document.getElementById('TitleSearch').value; alert(str);//displays the keyword like database } </script> <form name="f1" method="post"> <p><label for="TitleSearch">Keywords:</label> <i...

Can name of CSS ID, Class, JavaScript variables be a copyrighted issue?

If I use any commercial or free/opensource/ CMS's CSS and JavaScript with existing CSS classes, IDs and variable names can it be a copyright issue? ...

translation in JS ?

Basically need to generate custom(some different then yes no) messeges(alert) in JS , how to deal with translation in it? ...

Embedding ASP.Net code in external javascript files

Hi, I have a code like var mySession = "<%= Session["MyID"] %>"; alert ( mySession ); and when I place this code in my aspx page inside a script tag, it works fine. But it doesn't work in an external js file. I am not able to figure out the problem. Is there anything wrong in my code, or is it like this by default? Thanks in advan...

Loading javascript in a Dojo ContentPane

Hello, I am stuck again. I am trying to load some javascript (a number spinner) into a Dojo content pane. And I get a nice ugley message: Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) Here is my code. Any ideas? <html> <head> <script type="text/javascript" ...

Javascript Refuses to Call ActiveX Method, Agrees to Call Another

Hello, I have an ActiveX object which extends some functions. I have a web page that loads the ActiveX object and calls its methods in Javascript. The ActiveX object has two method; the problem is that Javascript can successfully call one of them but fails to call the other; citing Object doesn't support this property or method which is ...

JavaScript dialog box / context menu for text areas

I am working on a project at the moment that requires a dialog box or context menu to display when the text in the box matches a certain regex pattern. For example, if I was to type @user into the text area, a dialog box would show up where the cursor is or just below the typed word containing Ajax generated list of possible matched use...

ScrollIntoView For Table Row Not Working in IE 8

Hi, Can someone please explain why the following does not work in IE8. Basically i'm just trying to scroll a Table Row into view contained within an overflow DIV. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <script language="javascript" src='scrip...

element = $(element); Object expected error?

on a webpage in under developmnt i'm getting this error on IE element = $(element); this code is in prototype.js Object expected How to get rid of this error. Update: jQuery is also being used on site. ...

Reinventing the wheel -a WYSIWYG Editor

I dont know whether I am reiventing the wheel. I need to design an online WYSIWYG where users can make one/two/three-column layout page.The WYSIWYG should adjactly show the contents in design mode as well as preview mode.Therefore, the WYSIWYG should also have the supports for Header and Footer too.Therefore, the WYSIWYG will have at le...