Hello everyone:
I just recently launched my blog, and I think that sIFR is causing intial page loads to stall, basically causing an internal 500 error or timeout.
The URL for the site is http://gothamblack.com/
For the life of me, I cannot determine what is going on. I am currently running the latest version of sIFR, with the replace...
I have an AJAX chat system that I'm working on and so far I have it working. One thing I want to do is have it so when the user name is displayed on screen, it is a unique color (like in an AIM window). How would I generate a random color to assign to the user's name for the particular session they are logged in for?
The color would hav...
Duplicate
Scrolling Overflowed DIVs with JavaScript
I have an AJAX chat that outputs the messages to a div with overflow: auto so if it gets too long, the scroll bar comes up. Is there is a way to have it auto scroll to the bottom whenever a new message is added? Preferably using jQuery?
...
How could I change the code below so that when an element is being being dragged the script will stop fetching the output file until that element was released?
$(document).ready(function() {
//$(".draggable").draggable();
$(".draggable").draggable({ containment: '#container', scroll: false });
$(".draggable").draggable({ sta...
I'm having two major issues on my site:
1) A series of links is cutting off the left edges of the menu items and also seemingly transposing characters from other items in the list
2) I'm having a massive font-size jump: anything between 2em and 3.95em are identical in size, but the moment it steps above that the size jumps hugely.
I r...
I met one troublesome web page whose structure is complicated. If one DIV is clicked by mouse, everything is OK. However, if it is focus-ed by javascript(i.e. divElement.focus). The layout turns to messy. This only happens in IE7/8.
So, is there any difference between click-to-focus and focus-by-javascript in IE?
...
I was expreimenting to build a page editor. One issue just drove me crazy in firefox.
The page code is below:
<body>
<iframe WIDTH=200 HEIGHT=200 id="myEditor"></iframe>
<script>
function getIFrameDocument(sID){
// if contentDocument exists, W3C compliant (Mozilla)
if (document.getElementById(sID).contentDocument){
...
I am making a rails app and having a ridiculously hard time trying to get the Redbox plugin to work. I'm pretty sure I installed everything correctly and am using it properly. When I use one of the helper methods, it seems to generate javascript properly. For example when I type:
<%= link_to_redbox 'hello', 'test' %>
it generates:
<a...
can we access the value of a javascript function from outside the function
like if i had a function
<script>
function test_tree(opt)
{
val=opt;
}</script>
can i access the val value from outside the test_tree function or is there a way to access it from php code?
i need to be able to access a value from the javascript code to php co...
Hello!
I have a strange problem. I have a jQuery document.ready function executing some script on the page. When I was testing it through opening the file with firefox/opera it worked. When I uploaded it to the server (I tried both my home apache and my shared hosting) it only works once in 10 loads maybe.
What could be the problem?
T...
Is there a way that content can be pulled from an XML file into a DIV on click, without using IDs, and with multiple DIVs involved?
For example, in the code below, clicking the first link would make content from an XML file appear only in the DIV below the link, and without manually assigning any IDs to the link or to the DIV.
<a class...
I want to create a small tool on webproject which will let the user select tags on the page and i will save selections in an array for future use, so what i need is something near the functionality of firebug.
From where i can start? any good articles or tools can make things easier?
...
I want to write a script which allow the user when hovering on any element on the page "such as a, img, div" another hidden element will show on this current element and will have its position, width, height with transparent color.
How to do that using javascript/jquery?
...
I have integrated various WYSIWYG HTML editors over the past few years, but I think I have hit a brick wall on this one.
We need a way for people to edit text that turns into VML/SVG when rendered, but remains editable, with minimal styling such as bold, italic, font face and size, and if possible, ability to create a text region anywhe...
I'm trying to sifr ul#menu div, but exclude ul#menu div div
I've experimented from the instructions on the Novemberborn Tricks page:
http://wiki.novemberborn.net/sifr3/Tricks
But haven't been able to figure out the syntax. I can't seem to make it work. Does anyone know if the EXCLUDE feature can be used on this without specifying a cl...
Anyone knows a dom inspector javascript library or plugin?
I want to use this code inside a website i am creating, i searched too much but didn't fid except this one http://slayeroffice.com/tools/modi/v2.0/modi_help.html
UPDATE:
Seams That no one understood about my question :(, i want find an example or plug in which let me implement ...
I'm trying to convert XML data into PDF files from a web page and I was hoping I could do this entirely within Javascript. I need to be able to draw text, images and simple shapes. I would love to be able to do this entirely in the browser.
...
I have a string in this format:
<!--Start 498-->
some stuff here
<!--End 498-->
<!--Start 498-->
some more stuff here
<!--End 499-->
and so on.
How can I split this string to remove the content between a certain block of <!--Start xx-> and <!--End xx-->?
For example, if I wanted to remove the text between <!--Start 500--> and <...
I'm a bit confused with JavaScript's delete operator. Take the following piece of code:
var obj = {
helloText: "Hello World!"
};
var foo = obj;
delete obj;
After this piece of code has been executed, obj is null, but foo still refers to an object exactly like obj. I'm guessing this object is the same object that foo pointed to.
...
Hi,
when you click on the reddit register button, a nice window pops up and the rest of the screen goes blackish. you can click on the rest of the screen to close the pop up.
I know I could use the outermost div for this, but is that how reddit does it? are they changing the attributes of that outer div on the fly also?
...