I am trying to create an interface to allow easy editing of PDFs like VuePDF in an application I am building. This is not core to the application and will only be used by the admin.
I was wondering if there was a per-built stack for editing PDFs in the browser window?
Basically the admin user needs to black-out private data, like names...
SO I have a php function for redirecting
public function redirect($url, $permanent=false, $statusCode=303) {
if(!headers_sent()) {
header('location: '.$url, $permanent, $statusCode);
} else {
echo "<script>location.href='$url'</script>";
}
exit(0);
}
It's done me wonders so far, but Lets say that I am l...
Hi to all, my requirement is to get the result in gridview based on the treeview node selection using javascript i.e. client scripting. Currently the same can achieve using server side scripting, but i want with out postback and without using selectednodeindexchanged event. Pls. help me to solve this problem.
...
function insertParamIntoField(anchor, param, field) {
var query = anchor.search.substring(1, anchor.search.length).split('&');
for(var i = 0, kv; i < query.length; i++) {
kv = query[i].split('=', 2);
if (kv[0] == param) {
field.value = kv[1];
return;
}
}
...
Hi,
I'm trying to learn how to use the EXTJS grids for some simple CRUD operations over a table in a admin app.
I have a simple grid that allows someone to edit users, the store is defined as:
var userDataStore = new Ext.data.Store({
id: 'userDataStore',
autoSave: false,
batch: true,
...
I want a browser to go full screen as soon as my page loads. Is it possible in javascript.
I know the shortcut key for this F11 but requirement is on page load only.
After reading the solution provided below. I achieved full screen but here i got a trap. I was using timer to make my page postback to get fresh data after every 5 second. ...
$("#inputField").focus()
when the cursor focuses on the texbox i want to do one space, so it moves to the right a little further!! if you know what i mean thanks
function insertParamIntoField(anchor, param, field) {
var query = anchor.search.substring(1, anchor.search.length).split('&');
for(var i = 0, kv; i < query.le...
I'm trying to write a function that will auto suggest what the user means when they type into an input field. Right now I have all of the auto suggest code complete but in my javascript I can't get to the first if in toggleGenusInput no matter what I do (this first if queries the database through php and gets the suggestions).
Does anyo...
<script>
function jsonfunc(){
var data ="publick="+document.getElementById("publickeyval").value+"&privatek="+document.getElementById("privatekeyval").value;
var url="http://www.remoteapiserver.com/example_api/example_adcpatchaapi.php?"+data;
alert(url);
var my_JSON_object = {};
var http_request = new XMLHttpRequest();
htt...
hi
I am new to javascript and am trying to compare two date values ,I am getting two time value strings in the format
06:30:47 AM
01:10:47 PM
I need to compare these to find out if the first one is less than the other.I couldn't figure out how to do this in javascript.Can someone help?
o.h
...
I have a JavaScript object that I'd like to add some properties to, but I don't know what the names of the properties are until runtime.
Can I do this without using eval? If so, how?
var get_params = new Object();
var params = {'name':'john', 'age':'23'}; //actually not known until runtime
for (var i=0, len=params.length; i<len; ++i ){...
Hi,
is it possible to add some global exception listener in javascript? Let's say I have JS function:
function log(message) {
alert('logged: ' + message);
}
and I want to invoke it if any exception occurs on page. It is well known that aop is ideal for that case, but is there any really useful library which has that well advise-poi...
How can I make canvas be 100% in width and height of the page?
...
Hi,
I have in any page in the head an include to php page. in that php there are some sql and some divs.
my problem is that because of the divs, all my layout is damaged.(it's automatically put the divs before the wrapper div). if i put the include in the body- everything is ok. (because i put it after the <div id=wrapper>)
so i have 2...
I have some javascript and am creating some html on the fly. What I want to do is add an event handler to each control (they are all “Input” controls) so that if I click on any of them they all fire the same event. I first define a delegate in the initialize section of the code like this:
this.rule_event_handler = Function.createDelega...
I would like to build a Facebook Like-functionality for a video competition (currently not connected with Facebook in any way) where the like button gets the total amount of likes as a callback when clicked so that I can save it in my database and use as the primary voting system.
Is it possible to build this solution, preferably in Jav...
hi,
I'm trying to change the code of query-tool "Technology Explorer for IBM DB2", so only selected query will be run...
I already got some help from the developer himself,but this only helped me find the right parts of code, not with coding new functionality...
http://sourceforge.net/projects/db2mc/forums/forum/761212/topic/3821430
I...
I have an asp.net website StartPage that does not require signing-in, in order to view it.
On this StartPage, there is a Login linkbutton that when clicked opens a small Login popup page. Unfortunately, after the user has entered their loin credentials and clicks login, the destination page loads in the same popup window which is not my ...
Hey,
I wrote a script with two functions executed by setInterval().
One function rotateTheSun() constantly rotates an object, the other moveSlide() handles moving a sliding div onclick.
Whenever the constant function is running, the div slide very slow.
Is it a JS issue, or did I just wrote a bad script (as usual)?
source:
window.o...
Hi All,
How can I get the start and end selection indices in browsers other than IE in contentEditable 'div'. For Ex., IE has the following method.
var oSelection;
var oTxtRange;
var units = -100000;
var iStartIndex = -1, iEndIndex = -1;
if(document.selection) // IE..
{
oSelection = document.selection;
oTxtRange = oSelection....