if i keep javascript at bottom or keep javascript in <head> inside document.ready, are both same thing?
I'm confused between these two methodology
this http://api.jquery.com/ready/ and this http://developer.yahoo.com/performance/rules.html#js_bottom
Is there any benefit to put js at bottom (just before </body>) even I'm keeping the co...
Hello
I'm using the pretty fullCalendar jQuery plugin.
I'd like to be able to have a title AND a detail on each event as in the screenshot below:
Here the details are the participants for each session.
(overflow hidden on the detail)
...
Hello. I've been writing some Adobe Illustrator javascripts to improve my workflow. I've been really getting to grips with OOP recently so I've been writing it using objects and I really think it helps keep my code clean and easily up-datable. However I wanted to check some best practice with you guys.
I have a rectangle object which cr...
I saw a this function
(function (x, y, data, lbl, dot) {
var timer, i = 0;
rect.hover(function () {
clearTimeout(leave_timer);
var side = "right";
if (x + frame.getBBox().width > width) {
side = "left";
}
var ...
Hello
The javascript code below is about half way on my php page, I can't directly modify the radio buttons with IDs q_251_789 and q_251_790 on my page unfortunately, hence why I'm using JS to add attributes to those two radio buttons:
<script><!--
$("#q_249_249").hide();
$("#q249").hide();
$("#q_251_789").attr("onClick","yesClicked();...
Is there a way to add css from a string in the javascript file to the head of a document with javascript?
Let's say we have a webpage, which has a lightbox script, this script requires a css file to function.
Now adding this css file with <link> will make the css file download even for people that don't have js enabled.
I know that ...
There is a few questions about this, but mostly lacking details and no definitive answer.
So I am using xhr long polling, my poll is pretty basic and just looks like
var poll = function() {
$.get(url, function(data) {
doStuff(data);
poll();
});
};
I start that from a script that is imported just before , I remove absolu...
I need an encript arithmetic, which encript text to text.
the input text could be unicode, and the output should be a-z A-Z 0-9 - . (64 char max)
and it could be decrypt to unicode again.
it should implement in javascript and python.
If there is already some library could do this, great, if there is not, could you tell me.
Let me ta...
what is the meaning of these jquery random attributes in html and how jquery use them
any ideas please ??
...
I have the following setup:
ASP.Net page which contains a web form (payment form).
Certain hidden page elements containing help text (for example a "where is the card security code" image)
Currently, when the user clicks a help link for the form element, for example: "Where Can I Find This?" for security codes, I use jQuery to $.show...
$(this).html().replace("0 days","");
i want to replace "0 days" to become "". Currently the above statement will replace "0" to "" . that is not what i want. i want to replace entire statement "0 days"
...
if (selectedCountry == "USA") {
$("#state").show();
}
How can I change name for my div #state with the same condition?
(to add name="NewName" to my div id="state")
Smth like:
if (selectedCountry == "USA") {
$("#state").show();
$("#state").name("NewName"); <-- ?
}
...
I need to run a piece of Java code which builds a complex SQL query. I know how to call the Java methods from JavaScript in BIRT but how can I get a pointer to the current DB session/connection?
...
Hi
I have a Tooltip which on mouse over opens on the top left side corner
of the page irrespectve of the 'mouseover'.
In case of IE8 this works fine and opens just above the place where mouse is
placed but in Firefox its unable to calculate/interprete the values.
here is the code snippet for tooltip
function DoFlyOver()
{
if( ...
hello there i am constructing a site where i can upload my own mp3 files.
So i have the file uploaded to the server and when i link to it the browser plays the song.
Is it possible to make it so when the link is press it downloads the file instead of playing it.
For example www.example.com/music/song.mp3 once clicked it downloads inst...
I am using Jquery buttons set, which is built into Jquery UI. And selectmenu which is a ui addon.
.buttonset(); takes a group of buttons and makes thhem into radio buttons
.selectmenu(); takes a select menu and truns it into a nice looking popup list.
However when I place these items in a div with the property display:none and then in...
Hello!
I just wanted to ask you, if there is any option of using a webcam with Javascript? I know, that there is no native support for webcams with JS, but maybe there are APIs using Flash to capture the video and JS part managing it? I just want to display the contents of a webcam on a webpage - that is my purpose! :)
Thanks in advice...
Hi,
in my webpage i have a button , that let me download an excel file(generated by php code).
This part is called after clicing the button.
<script type="text/javascript">
window.open('siem_xls_download_d.php?adatum=<?=$adatum?>&edatum=<?=$edatum?>&ir_qot_id_lang=<?=$ir_qot_id_lang?>', target="_top", "Zweitfenster","width=200,hei...
The problem:
<% javascript_tag do %>
// some js
<% end %>
When I use this method the javascript-syntax is not triggered inside the block. When I use the <script> tag it works. Is there a way to trigger the javascript syntax for the rails block in vim?
Thanks.
...
We have an internal web application that acts as a repository to which users can upload files. These files can be any format, including HTML pages.
We have tested than in IE8, if you download an HTML file that contains some script that tries to access your cookies and, after downloading, you choose the "Open" option, the script execute...