I believe there should exist a known method for converting this:
<div class="singlePane pane">
<div class="tripleColumn"> <!-- TODO: -->
<div class="col">
<div class="captionedLink">
<div class="icon" style="background-position: -26px 0px;"> blah blah
INTO THIS:
\r\n \u003Cdiv class=\"singlePane pane\"\u00...
I have a page that is using Google Analytics to track page views as well as track events within the page. The initial _gat._trackPageview request works as intended (under normal circumstances, details to follow). However, on subsequent utm.gif requests, it seems there is a malformed utmcc argument in the querystring. The campaign trackin...
I'm trying to write a web application using the new offline capabilities of HTML5. In this application, I'd like to be able to edit some HTML—a full document, not a fragment—in a <textarea>, press a button and then populate a new browser window (or <iframe>, haven't decided yet) with the HTML found in the <textarea>. The new content is n...
I have seen a feature on a site I would like to emulate. I have intermediate php skill but am a novice javascript user. The feature is the site content displayed in divs which can be moved around on the screen and their position saved using cookies. This site: [url]www.nowgamer.com[/url] is where I saw it (latest podcasts, videos, review...
Hi guys, I am cloning a HTML drop down list using jQuery, the problem I have now is that there is no limit to the amount of cloned sections, and I have to capture all of the sections into a mySQL database.
How can I get all of those different sections with different ID's into a mySQL table, since I am using POST, how will the receiving ...
I want to provide some functionality through an extension. This requires (read and execute) access to some resource files (an mp3 file, a swf file and two js).
I know user scripts cannot access local files and I need an extension (add-on) to do that.
But can I start by writing a greasemonkey script and compiling it to a xpi?
How should...
Hello.
I am developing an application using ExtJS.
I have an accordion and I need to select an active item(so it expands).
Accordion.setActiveItem outputs: "setActiveItem" is not a function in a browser's error window.
Second issue is that hideCollapseTool property, when set to true in the initialisation, doesn't do anything. Collapse ...
I have some layers that are dynamically put in as follows
<div><p class="locid">2<p></div>
<div><p class="locid">1<p></div>
<div><p class="locid">2<p></div>
<div><p class="locid">3<p></div>
<div><p class="locid">4<p></div>
What I need to do is hide the second occurrence of this layer so it appears as follows
<div><p class="locid">2<p...
I have a webcontrol with two dropdownlists on in. When you choose something from the first, the second is populated accordingly. When post back occurs I get the old:
Invalid postback or callback argument. Event validation is enabled
using in
configuration or <%@ Page
EnableEventValidation="true" %> in a
page. For security...
Here is my stream publish code that publish some infomation (attachment, media) to Facebook wall post:
function afterAcceptPublish(to_id){
var postid;
var attachment = {
'name': 'ฉันได้รับของขวัญเนื่องในวันอีดิ้ลฟิตรี่จาก <?= $card['name']; ?> แล้ว',
'href': '<?= APP_BASE_URL; ?>...
I have a this regular expression below for some input name fields. How do I include an apostrophe and a hyphen in this?
InputField("tFName", /^[a-zA-Z-\-\ ]+$/);
...
Can I plot charts like this http://developer.yahoo.com/yui/examples/charts/charts-rotation.html using flot ?
I mean, I have two series with the same values on the x axis, I want to show them aligned together like in the example above, Flot plots them one above the another.
Any ideas ?
...
I've used Spring Roo to generate a basic web project. The UI is JSP based, with a Tiles layout. Looking at the default layout code, I noticed that tags were defined as follows:
<script src="${dojo_url}" type="text/javascript" ><!-- //required for FF3 and Opera --></script>
<script src="${spring_url}" type="text/javascript"><!-- //req...
How do I merge a smaller image on top of a larger background image on one canvas. The smaller image will move around. So I will need to keep reference of the original background pixel data, so that the each frame the canvas can be redrawn, with the overlay in its new position.
BgImage: 1280 x 400, overlayImage: 320 x 400, overlayOffsetX...
Extending the example here:
http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm
How could I generate the subtotals, and additionally add in the Name of the product selected? Instead of:
Qty Product Price Total
1 Learning jQuery $39.99 $39.99
1 jQuery ...
hey I'm looking for a good way to ellipsify text in a yui datatable. By that I mean, formatting the text so that it fits nicely into its cell and has an ellipse (...) trailing it if the text had to be truncated.
I want to do this wihtout the use of CSS selectors, because I have a large dataset and selecting each cell by classname would...
I'm working on a javascript extension for IE and I'd like to capture the HTML of a page and add an anchor and highlighting around the current selection. I've gotten this mostly working several different ways, but each approach has problems. I'd like to leave the original page unmodified, which is harder than it seems. For example, I've t...
I'm having problems encoding a string so I can place a variable into a link. I'm sure this is really simple, but i had trouble turning anything up.
$("a.inquiry").attr("href", "/inquiry/6933/text=" + encodeURI("text o"));
This doesn't work.
encodeURI("text o")
Still returns:
link/text o
Instead of:
link/text%20
Also tried:
...
Hi ,
I am rendering around 3000 records,
i am using this sorting open source script ,
When i click the column, my browser getting hang very shortly ,
i cant able to continue,
Is there any solution for this prob.
link text
...
First of all the code below works for my app for non ie browsers (i am using perl with selenium for extjs testing):
http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/
unfortunately the xpath library gives zero xpath count if i dare to add the visibility condition. The page content changes, so first i ha...