there is a page that i need to post a password to it and then i get a file to download.
the post goes to the same page address its loads again and pop up the download manager.
now i want to do the same but in curl, i posted the data to the url and then its sends me the file back but i dont want my script to download the whole file i want only to get a link to download it by myself.
how can i do that?
I am a jQuery noobie, and have been trying to add a script to change the id of a div onClick.
Here is a jsfiddle example.
$(function accept() {
$("div:scrollwrap").attr('scrollwrap','highlight');
});?
Thanks :)
I want assign certain values to some of the cck fields through Java script while the form is loaded. I think it is best to use the body/ form onload attribute. But how do i define that in drupal? Could someone help me with this or a better solution?
Hello forgive me if i use the wrong terminology and the messiness of this code it is the first time I have used jquery.
I am making an interactive table-product selector. Compatible systems run along the top and colour choices down the left.
The table works by seeing if there is a cell is empty in a html table. If the cell is empty then that is a compatible system and a circle image is in that cell and it is selectable. When selected the product code is generated (by looking at the colour value and system name) and the relevant resource download pack can be downloaded.
This works 'fine' when on its own on a page however when I have multiple instances of it on one page they interfere with each other. Only the first one works and clicking in the 2nd 3rd etc table updates the first one. I need these to function independant of each other. I believe the problem is centering around the (this) command working across all of the tables but I can't quite figure this out with what I know of jquery.
<script type="text/javascript">// <![CDATA[
jQuery(document).ready(function($j){
$j(document).ready(function() {
jQuery.noConflict() (function(){
$j(".options").each(function() {
// current td element
var tx = $j(this);
// do it once only
var val = tx.text();
tx.css('background', val ==1 ? ''
: 'url(circ.png)');
});
$j("#para").text('').append("Please make a selection");;
$j(".options").click(function(e) {
$j(".options").each(function() {
// current td element
var tx = $j(this);
// do it once only
var val = tx.text();
tx.css('background', val ==1 ? ''
: 'url(circ.png)');
});
var ProductCode = 241;
var currentCellText = $j(this).text();
var LeftCellText = $j(this).prev().text();
var RightCellText = $j(this).next().text();
var RowIndex =$j(this).parent().parent().children().index($j(this).parent());
var ColIndex = $j(this).parent().children().index($j(this));
var RowsAbove = RowIndex;
var ColName = $j(".head").children(':eq(' + ColIndex + ')').text();
var rowid = $j(this).parent().attr('id');
if(currentCellText===''){$j(this).css('background', 'url(circfill.png)');
$j("#para").text('').append( ColName +"-"+ ProductCode +"-"+ rowid +"<br />")
$j("#resourcepack").text('').append("Download Selected Resource Pack")
$j("#resourcepack").click(function(){ window.location = '241.zip'});
;}
else{$j("#para").text('').append("Incompatible Selection");
$j("#resourcepack").text('').append()
}});
});
});
});
</script>
how can i call public functions or vars of a sprite class from another class (or frame script)? i keep getting "1061: Call to a possibly undefined method (function i'm trying to call) through a reference with static type flash.display:Sprite.
how can i call public functions or vars of a sprite class from another class (or frame script)? i keep getting "1061: Call to a possibly undefined method (function i'm trying to call) through a reference with static type flash.display:Sprite.
Can anyone tell me if there are any clients (browsers) that define a functioning Object.prototype.hasOwnProperty
that do NOT define a Function.prototype.call?
That is, must I use belt and suspenders to qualify clients for a certain level of scripting,
or will hasOwnProperty do for both?
if(Object.hasOwnProperty && Function.call){
// add script
}
Is support for either of these properties a reliable subset of support for the other?
I have to stop a browser from a PowerShell script, which I do by piping it into
Stop-Process -Force
However, this is very abrupt. When the browser is restarted, it detects that it didn't shut down cleanly, and tries to restart the previous session. Is there some way I can tell it to shut itself down gracefully? ("There are two ways we can do this ...")
I have an unknown number of functions in my python script (well, it is known, but not constant) that start with site_...
I was wondering if there's a way to go through all of these functions in some main function that calls for them.
something like:
foreach function_that_has_site_ as coolfunc
if coolfunc(blabla,yada) == true:
return coolfunc(blabla,yada)
so it would go through them all until it gets something that's true.
thanks!
Dear All,
I am experienced in the technical support like Linux, oracle, sunos etc and but if i say scripting i know little bit of bash. Now i promoted to manage technical engineers inuding some java script developers, so i want to learn java scripting so that i can understand engineers. Hope you understand. Can you please advise me how can i start java scripting and point me to some simple docs and examples.
The documentation for Lua for Wireshark claims that the Tvp class has a new_real() method.
However, this method seems to not exist when I try to use it in my Lua script.
I'm using Wireshark 1.3.5 (latest dev version) for Windows x64.
Did the method get renamed? If so, to what? Is there a better support forum for this particular question?
We're trying to script a cad program, and this is the example for controlling the date in our design slugs, but I don't even know what language it is to know what to do with it.
! LIBEDATE
def &d$ &ret$
set &d$ = rstr(`/`,` `,#d$);
set &ret$ = word(&d$,2),`/`,word(&d$,1),`/`,subs(word(&d$,3), -2, 2)
my python xml parser fails if there´s a comment at the beginnging of an xml file like::
<?xml version="1.0" encoding="utf-8"?>
<!-- Script version: "1"-->
<!-- Date: "07052010"-->
...
is it illegal to place a comment like this?
I am looking to copy the webpage title (of an open webpage in safari) to the clipboard using apple script (or a javascript snippet will do).
I will then use that Variable in Automator.
I have looked all over the web, but cannot seem to find the answer.
Hi
I would like to zip a bunch of files (.exe and .dll) before I overwrite them with the new build. Is there a simple way to zip files without using some sort of dll?
Just creating a folder with the build number / date time stamp will also work great. How do I pass parameters from the cruise control build process into my Powershell script that will do the work then?
Is this a sustainable way to do things?
Thanks
Hello,
I'm trying to make a script that will download search results from a HTTPS website using POST. So far, I'm able to download the web page before the submission but not the response page containing the search results. The problem seems to be that curl isn't waiting long enough for the response page to appear.
The website behaviors likes this.
Website appears- input form data - click submit - progressing icon appears - returns new web page with search results( new data but the url doesn't change )
My code: curl -d "postData" -k url
Facebook has a "Dom Placeholder" on their Password field when logging on. When I click on the input for the password, the placeholder disappears and allows me to type my password "masked".
Is this Javascript related and how would I go on replicating this script?
Hello!~ On my articles page (http://www.adrtimes.squarespace.com/articles) I have each entry start with an image that changes on rollover. This is working fine.
However, on my homepage (http://www.adrtimes.squarespace.com), I am loading in the 2 most recent articles that are not categorized as video, and the 2 most recent articles that are tagged as video. I am using jQuery load() to pull in the content from the articles page. Everything works ok with that except the swapImage rollovers on the homepage. i tried including the swapImage function as callbacks but only one group or the other will rollover properly, not both groups of content. I'm not sure what the problem is!!
Here is the code:
<script type="text/javascript">
<!--
$(function(){
$.swapImage(".swapImage");
/* Homepage */
// load recent articles
$("#LoadRecentArticles").load("/articles/ .list-journal-entry-wrapper .journal-entry-wrapper:not(.category-video)", function(){
//callback...
$("#LoadRecentArticles .journal-entry-wrapper").wrapAll('<div class="list-journal-entry-wrapper" />');
$("#LoadRecentArticles .journal-entry-wrapper:gt(1)").remove();
// modify Read More tag
$('.journal-read-more-tag a:contains(Click to read more ...)').each(function(){
var str = $(this).html();
$(this).html(str.replace('Click to read more ...','Continue reading—'));
});
$.swapImage(".swapImage");
});
// load recent videos
$("#LoadRecentVideos").load("/articles/category/video .list-journal-entry-wrapper", function(){
//callback...
$("#LoadRecentVideos .journal-entry-wrapper:gt(1)").remove();
$('<div class="VideoTag">—video</div>').insertBefore("#LoadRecentVideos .category-video .body img");
// modify Read More tag
$('.journal-read-more-tag a:contains(Click to read more ...)').each(function(){
var str = $(this).html();
$(this).html(str.replace('Click to read more ...','Continue reading—'));
});
$.swapImage(".swapImage");
});
});
-->
</script>
And here is a sample of the html for the images in an article entry:
<a href="/articles/2010/5/6/article-title-goes-here.html"><img class="swapImage {src: '/storage/post-images/Sample2_color.jpg'}" src="/storage/post-images/Sample2_bw.jpg" /></a>
In SublimeText(2), when you press [ctrl + shift + p] (mac osx) you are shown a scope of where your caret/cursor is in the source code at the given moment e.g.: entity.name.tag.inline.any.html meta.tag.inline.any.html text.html.basic
I am curious about what library or script is used to parse the document/file and create that scope string.
A sidenote: Typing view.syntax_name(view.sel()[0].b) into Sublime's console will output the scope as well.
We have link to some page (with html code, on the same domain), that page have one img, which attributes title and alt are equal.
Script must open link (no showing on the page), grab the src attribute of img which title=alt, and throw the value into some variable.
Is it possible to do?
Thanks.
hello:
i have just created a new empty website from visualstudio 2010, added an new webform and droped a login control into the page.when i click the tag "administer website" then try to open security-Use the security Setup Wizard to configure security step by step, the IE8 shows the error: "Object Expected".
(tried to make a asp.net site with generated code, without any modification, but the error still occered)script type="text/javascript"
I have a script im writing. Here is whats happening. There is a while loop. In the while loop is a variable which is constant to X. How do i make X change from line one, line two, etc for each cycle of the while loop and pull X from a .txt file. Everything is in root. Thanks
I'm using the post-receive-email script included with git. (Source is here.) It works just fine, but I want each email to be sent from the author of the commits pushed. How do I do it?
My post-receive file currently looks like this, and I want to customize the from-email-address.
#!/bin/sh
export [email protected]
$(dirname $0)/post-receive-email
I am trying to finish a java program that uploads a file from a client machine to a webserver. The java program is executed with a bat script. I need to pass in a file name to the java program somehow since the filename is different every time. Or can i somehow use %1 instead of the filepath? I dont know.