Hi guys
I have the following script element in my web page:
<script src="default.js" type="text/javascript"></script>
Using JavaScript, I want to be able to retrieve the content of the script file. I know I could use a ajax request to get the data but then I am getting something from the server that I already have locally.
So what ...
Hello,
I am looking for ways to setup a basic site quickly.
I have a basic site which works with a databasem, templates, css, js and so on.
No I want to be able to quickly set up a site. What shoudld happen when i start the script is:
ask for some variables
on submit:
create a folder in the webroot
copy the standard site to that map
...
I have three types of get requests that are delivered to a class file on web application from a mobile device. Because the mobile device provides no cookies, the log file hit only has
in.ter.nal.ip ser.ver.i.p:port 2009-06-05 09:14:44 GET /applicationname/mobiledevicexml reqtype=login&userid=xx### 200 87 - MercuryMobile/1.0 CFNetwork...
I'm trying to implement scripting capability to my application. I'm using the code below. Whenever I instantiate a new Api object, the application is supposed to quit (a little testing thing :p)
However, the application crashes at script.AddObject(...) with the error Specified cast is not valid. Is there a step I'm missing here?
public...
I faced a website attack problem that some malicious javascript code added to all pages in my webiste.
Recently I faced another problem that my website is attacked with the following "iframe" tag.
iframe src="http://shopmovielife.cn:8080/index.php" width=127 height=167 style="visibility: hidden"
Even if I remove this tag, the index ...
I have a set of *.in files and a set of *.soln files with matching files names. I would like to run my program with the *.in file as input and compare the output to the ones found in the *.soln files. What would be the best way to go about this? I can think of 3 options.
Write some driver in Java to list files in the folder, run the pr...
I tried:
cpan> i /xls2csv/
No objects found of any type for argument /xls2csv/
cpan> install xls2csv
Warning: Cannot install xls2csv, don't know what it is.
Try the command
i /xls2csv/
to find objects with matching identifiers.
I haven't had any problems installing registered modules, e.g.
cpan> install DateTime
It is just the ...
What language should I use for file and string manipulation?
This might seem objective, but really isn't I think. There's lot to say about this. For example I can see clearly that for most usages Perl would be a more obvious candidate than Java. I need to do this quite often and at this time I use C# for it, but I would like a more scr...
In VMS DCL one may embed data in a command file using $DECK and $EOD. What is Linux for this?
...
I am looking for a scripting (or higher level programming) language (or e.g. modules for Python or similar languages) for effortlessly analyzing and manipulating binary data in files (e.g. core dumps), much like Perl allows manipulating text files very smoothly.
Things I want to do include presenting arbitrary chunks of the data in vari...
I have an MVC app with several <a> tags, and I want to have a way of tracking link clicks, preferably without doing redirects (i.e., without changing link addresses). Is there any way this can be done? And, if not, is there any way one can get this functionality automatically (e.g., with javascript)?
Thanks.
...
I would like to convert this /bin/sh syntax into a widely compatible windows batch script:
host=`hostname`
echo ${host}
How to do this so that it'll work on any Vista, WinXP, Win2k machine?
To clarify: I would then like to go on in the program and use the hostname as stored in the variable host. In other words, the larger goal of th...
I need a simple server-side scripting solution for the following problem:
My client has me making a site in ASP.NET MVC. I'm coding the whole site but there's a section they want to be able to expand later via simple scripting. For example:
When is your birthday?
__/__/____ [x] Don't display the year
This needs to take a title (...
As soon as you start using PowerShell, you are likely to start collecting small, useful scripts. Managing them well is tricky.
Where do you keep your PowerShell scripts?
How do you track versions & do backups?
How do you synchronize between machines?
How do you integrate new versions of other's scripts? (Including dealing with brea...
I need to depend on few separate executions in a script and don't want to bundle them all in an ugly 'if' statement. I would like to take the exit code '$?' of each execution and add it; at the end, if this value is over a threshold - I would like to execute a command.
Pseudo code:
ALLOWEDERROR=5
run_something
RESULT=$?
..other things...
I'm writing a snippet of code to be put on any third party website and have NO idea what environment it will be dropped into. My end goal is for the badge to be
<script src="http://example.com/js/badge.js"></script>
I would like to use jQuery in my badge code to make my life easier, but I don't want to require another includ...
Hi, I have a need to copy data from one Informix database to another. I do not want to use LOAD for doing this. Is there any script that can help me with this? Is there any other way to do this?
Thanks in advance!
Ravilla
...
I have directory structure:
DIR
|-component_name
|-source
|-setup.exe
|-another_component_name
|-source
|-setup.exe
|-yet_another_component_name
|-source
|-setup.exe
and so on...
In every directory like "component_name" I have setup.exe file which installs current component to the palette component in Delphi. I need to ma...
I use Emacs for shell scripts. I know I read somewhere there's some mode to make it easier (code completion, autocomplete, bracket matching, syntax highligting, check syntax) to write Shell scripts on Emacs but haven't been able to find it. In short, I would like to turn Emacs into a Bash IDE.
Also, is there any other tool/IDE to make s...
Hi friend
while review a javascript coding, i saw that
var detailInf = {
"hTitle":"Results",
"hMark":"98"
};
What's the concept behind this js coding. While give alert for the variable its shows as "[object Object]". So this is an object, then how can we access the variable and reveal the data from this object.
...