I can get the current row using this code. The "this" is a link in a table cell in the row.
$currentTR = $(this).parents('tr');
These next two lines can do the same thing, get the tr after the current row.
$nextTR = $(this).parents('tr').next();
$nextTR = $(this).parents('tr').next('tr');
If I output $nextTR.html() I see what I...
We are trying to develop an eShop. One of the functionality demands us to show a marquee with any recent buying / selling / updating activity that happens on the site. Currently we do get the marquee, however every time the page is refreshed the scrolling speed goes on increasing automatically. We are trying to discover a way so that it ...
For my application i need to create one tree structure which consist of nested folder which will grow depends open server reponse.
just like an email has tree structure-
inbox or sent or draft or outbox(f)/a(f)/some content
inbox or sent or draft or outbox(f)/a(f)/b(f)/email content
inbox or sent or draft or outbox(f)/email content
...
Hi, how can i get the content on enviroment agency website to load up on my site.
i want the current flood warnings so the users of the site can see them
The warnings are at
http://www.environment-agency.gov.uk/homeandleisure/floods/31618.aspx
Nothing i do seems to work, can get them there but not change on page refresh as they chang o...
With regards to security and convenience which cookies are better the PHP ones or the Javascript ones?
...
I load this JS code from a bookmarklet:
function in_array(a, b)
{
for (i in b)
if (b[i] == a)
return true;
return false;
}
function include_dom(script_filename) {
var html_doc = document.getElementsByTagName('head').item(0);
var js = document.createElement('script');
js.setAttribute('language', 'javascript');
...
Is it possible to have YUI menus e.g. slide in as opposed to simply popping up?
...
Hi
I need to scroll up the div as the new text comes in. My div is in Updatepanel and i am getting this error "get("divChatMessage") is null"
Here is my code:-
<script type="text/javascript">
function ScrollToBottom()
{
$get('divChatMessage').scrollTop = $get('divChatMessage').scrollHeight;
}
</script>
<div id="divMessage" run...
Hi.
I need a small function for jQuery that would close multiple DIV elements, but I'm having trouble with JS syntax.
I got this far:
function closePanels{
$("#servicesPanel").hide("fast");
$("#portfolioPanel").hide("fast");
$("#contactPanel").hide("fast");
$("#aboutPanel").hide("fast");
};
Sounds logical to me: That...
Hello,
I have a form with lots of data to be posted, so i was wondering if there is any way to get all the data to be posted automatically.
like for example i sent data this way
$.ajax({
type: 'post',
url: 'http://mymegafiles.com/rapidleech/index.php',
data: 'link=' + $('#link').val() + '&yt_fmt' + $('#yt_fmt').val(...
My problem: I have few buttons in the page I'm modifying - they have onclick events:
javascript:window.location.href='http://www.another.page.com/'; return false;
I have to send $_SESSION variable to redirected page. I can't do it in previous page because the variable will be different for each button. How can I do it?
...
I want to convert my english alphabets to arabic using JavaScript
Do I need to do some kind Unicode conversion for this? An example would be great.
...
Could any one please give me pointers as to how one can add text to images dynamically. For example a person fills up text form and selects an image . Then after clicking the submit button the text input by the visitor gets added to the image. To understand it better please check : http://www.vistaprint.com/ . In this site this has been ...
Hello all,
I am trying to make use of Google's API as a way to get the location of the user. Once I have done this, I pass this to an external PHP script which will further output some JavaScript code. However, I am having trouble calling the PHP script:
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAKw7Q">...
Hello,
There is a question. How JS will bevave if we compare if (true == "true") and (0 == "0") ? Is there any other tricky convertions?
...
I have already searched a lot, but it seems this can't work.
At the program, there is a jquery ready function to make the click event redirect.
if($.isFunction(link.attr('onclick'))){link.click();return false;}
else{document.location.href=link.attr('href');}
so in the hyperlink, there are 2 events can make this page redirect to new p...
Hello all,I m building a web project in jquery being used in client side and jsp/servlets at server end,i have a text area in which user writes and that written text is displayed in chat box text area.now i want to suport multiple languages in it.Earlier i was using only english.Now i want that if user writes in english it should be disp...
Hello,
Is there a way to get, let say, the 5th line ( the offset of its first letter ) of a block's content using jQuery ?
I mean the visual line, the browser computed line, and not the line in the source code .
...
Hi guys, please help me select c.. Here's the HTML code:
<div id="a">
<div id="b"></div>
<div id="app7019261521_the_coin_9996544" style="left: 176px; top: 448px;">
<a href="d.com" onclick="(new Image()).src = '/ajax/ct.php?d_id=;action_type=d;post_form_id=6b; return true;"></a>
</div>
</div>
And here's my Javascr...
I have always thought of JavaScript as a client-side scripting tool for augmenting the functionality of HTML, which in turn is usually generated by some other server-side technology - Java, .NET, Rails, Django, PHP, etc.
Recently though I have heard people talk about JavaScript as an "application language". I understand that application...