I am trying to generate a jquery script to make all tr elements from a table with class top clickeable and when one tr with class top is clicked all tr below with class bt until there is another tr class top will slideToggle.
I tried several things, but none is working, I think I am having some problems with my selectors.
Could anybody...
Hi i want to remove the following
<tr><td style="padding-left:20px;" class="content">
This works fine with
$(".content").first().remove();
But on some of my pages I have this
<tr class="dgItem"><td class="content">
And it gets removed.
Is it possible to make the JQuery only select the first example?
...
Hello,
I am trying to use a body background image which is center aligned, but it does not work in IE 6. The CSS for the body is
body{line-height: 160%;font-family: "Trebuchet MS", sans-serif; font-size: 80%;
/* background: #000a28 url('img/main_bg.png') no-repeat center top;*/
background-image:url('img/main_bg.png');
background-...
I am trying to fix a horrid nested table layout for a site. The page will have a variable number of elements that leverage Google charts. Instead of complex spaghetti code that tries to lay things out inside of table cells I want to use a horizontal UL so the content blocks will lay out cleanly regardless of the charts involved. The prob...
I have written a web service that returns some data as json. To display this in a table I am using the datatables jquery plugin:
for(var i=0;i<results.length;i++){
myTable.fnAddData( [
"<input name='codeSearched' type='radio' value='"+results[i].ID+"' />",
"<span id='code_"+results[i].ID+"'>"+ results[i].code+"</>",...
I have a page with some radio buttons that I want to be checked on page load. This is the jQuery that I'm using:
$('.optionHolder').find('input').first().attr('checked', 'true');
The one's I want checked are the first input elements of each .optionHolder on the page. At the moment there are two, but the code above is only checking one...
I'd like to do something on the page when a user clicks 'Like'.
I thought something simple like the following would work:
<script type="text/javascript">
$(document).ready(function () {
$('.connect_widget_like_button clearfix like_button_no_like').live('click', function () {
alert('clicked');
});
}...
I have an input field that was written with onfocus="this.value='' , but recently decided to change it to onfocus="this.select() . The trouble is that when I went to change it, it still clears! I searched my entire javascript library, html, everything looking for what could be causing that. Nothing is being called of the likes.
I tried ...
my music is keept on desktop with this name
doli mix - arcax(Mus.Ge).mp3
how to write code to play this music in html?
...
I wonder if me.com is coded with javascript+css+html only?
No RIA language like Flash, Java right?
...
How do I make for this onFocus to occur just 1 time (not as now that is blocking the windows with dialogs)?
<html>
<form name="myForm">
<input type="button"
value="Big Button"
name="myButton"
onFocus="alert('Focus event occured')">
</form>
</html>
update:
sorry, when I say "a s...
I'm building a Mashup application which will generate output in EMML. The application is JavaScript based having an interface like Yahoo Pipes. Once the Mashup is designed in the editor, it needs to convert the same HTML markup to correct EMML markup.
I need to know if there is any Javascript framework or plugin available which convert...
For pages already specified (either by HTTP header, or by meta tag), to have a Content-Type with a UTF-8 charset... is there a benefit of adding accept-charset="UTF-8" to HTML forms?
(I understand the accept-charset attribute is broken in IE for ISO-8859-1, but I haven't heard of a problem with IE and UTF-8. I'm just asking if there's a...
I have a very strange problem:
I use xsl to show an html picture where the source is defined in the xml file like this:
<pic src="..\_images\gallery\smallPictures\2009-03-11 אפריקה ושחור לבן\020.jpg" width="150" height="120" />
[the funny chars are Hebrew- ;) ]
Now comes the strange part:
When testing the file locally it works ...
Hi I have a web site on my server that is used to plan events, authorised users log in and use the site. I am in the process of selling the facility to a client 'on licence' But he wants the code/script on his server. Can anyone suggest a suitable way to go about protecting my code even if it is running on somebody else's server ? any p...
Often a user will misuse a Rich Internet Application, and attempt to use the browser's Back Button. Such mistakes can be disruptive to changed but unsaved information, as in a Flash or Flex application.
It is a simple matter to alert the user for confirmation before leaving the page (see below). However, I have a client who strongly...
Hi.
I'm having the following problem.
On one page with a form, user_report.php", all characters like 'ç' or 'ã' are all correctly displayed.
Now when submitting the data, anything with those characters get's displayed/transfered to the second page, "result.php", all wrong, for example: 'Restauração' get's transfered as 'Restauração'...
Edit: There is a somewhat strange solution to this question. Check my answer posted below
I am working on this site and it works perfectly... Or at least, it did work perfectly until earlier today.
I don't know what I did, I made some minor changes to the code but no changes to the front page. The site is tested to work correctly in F...
looking at this issue on stackoverflow, i got going in the right direction to what i'm looking for:
http://stackoverflow.com/questions/652917/in-jquery-want-to-remove-all-html-inside-of-a-div
i have a textarea similar to the following:
<textarea id="inputPane" cols="80" rows="40" class="pane" style="height:300px;">
<table><tr><td>
<b>...
I currently have an internal website that is running Apache. It is serving some cgi script webpages (perl code). Recently in Firefox and Chrome it is starting to show plain text version of the HTML code. In Internet Explorer it renders the cgi files as HTML, but in Chrome and Firefox it is rendered as plain text.
In the perl code I h...