|
I'm pretty sure these are available for free on the Oracle[^] website or, at least they used to be. You'll have to do a search in the site as I have not used them for a few years.
|
|
|
|
|
Hi, I am back again with clarification in ajax post.
I am having a WYSIWYG (TinyMCE) editor for a description field.
I am posting it using AJAX.
Assume that the data is "lorum ispum & <p>sample text<p>"
so it will be like
var udescription = "lorum ispum&sampletextandothertext";
xmlhttp.open("POST","ajax.php?description="+udescription",true);
Obviously this will get posted as usual form the client side.
But the server parses it as
Array (
[udescription] = [lorum ispum],
[sampletextandotherext] = ''
)
that is, any letters after an ambersand is consider as a key and it searches for the '=' sign to take the value next to it...
so if i send "ajax.php?name=joe&number=989898&description=sample&one&two"
it will be like
name = joe
number = 989898
description = sample
one =
two =
So what i think is doing a base64encode here and doing a base64decode in the server side.
I have base64encode function for javascript.
Will this solution holds good or am i m i s s i n g something.
Do people have an alternate or a suggestion. Please provide any kind of info so that we forum users will update it.
How does a browser send data to the server. hope it sets the mime type to base64 and the server would check it and decode it.
The post data would be 7 bit, 8bit and base64 and then multipart data seperated by boundaries.
so we have to set a different content type or use additional methods of XMLHTTPRequest???
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
You can better use encodeURIComponent() to 'encrypt' your data. It is a build-in javascript function.
Wout Louwers
|
|
|
|
|
Oh nice, since i started using my own function i totally forgot these built in functions... thank you
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Hey All,
I'm in the process of switching over a set of SSL certificates on a Staging setup and have run into a problem.
The services are IIS hosted WCF services exposed as ASMX services. I've gone through all the various configs and configured the new serial numbers and thumbprints. The 'main' services are all functioning fine using the new Root CA and server/client cert, however the security is in another service, in the same website and communication there is not working.
The machine itself can also browse the WSDL as does my dev machine, it requests the correct certification and displays the WSDL in both instances. But when a service attempts to call it, it fails with "Could not establish secure channel for SSL/TLS ?". I've double/triple checked the serials and thumbprints in the config files and all is well. I've compared the setup to the Live environment and all agrees with what I've done. The two systems have the same build of all the services as well, as controlled by Cruise.
I'm no expert with IIS but as far as I can tell, that's all correctly setup as well. Behaves as expected. I'm going to look at the HTTP/HTTPS setup tomorrow with httpcfg.exe to see if there is any joy there.
Any ideas or things to try would be really appreciated.
|
|
|
|
|
Hi All,
Just to let you know the solution.
The problem was the permissions on the certificate itself. Using this command fixed my particular problem:
C:\Program Files\Windows Resource Kits\Tools>WinHttpCertCfg.exe -g -c LOCAL_MACH
INE\MY -s "IssuedTo-NameOfCert" -a "NETWORK SERVICE"
Regards,
|
|
|
|
|
Hi,
I am trying to access a macro placed in office start up folder, which is a template doc (.dot). it throws error "Automation error". My request to the server is thru ASP3 and VB 6 - COM+.
Thanks,
Bad Programmer
|
|
|
|
|
hiiiiiiiiiiii
any one can tell me from where we can download flash slide make professional software full version software
please reply me as early as possible
rizvan sivally
|
|
|
|
|
sheemap wrote: any one can tell me from where we can download flash slide make professional software full version software
Yes, you could by searching Google.
MVP 2010 - are they mad?
|
|
|
|
|
Hiya everyone,
So yes, as the title states, I'm trying to protect images on a website from being downloaded directly (privacy problems).
What I've done (or am trying to do) is something like <a href='img.php?file=blah.jpg'> . However, in img.php, I don't know how to tell if the image is being requested in the actual page (index.html, lets say) with the <a> tag, or if it's requested seperately by someone who's copied that url and viewed it (in a different window, maybe). I've tried $_SERVER['REQUEST_URI'] but that returns img.php?file=blah.jpg under both circumstances.
Is there any way I can find out?
Thanks in advance. 
|
|
|
|
|
You could check $_SERVER['HTTP_REFERER'] - that should give you the URI of the page that referred to the image, as long as the user's browser doesn't have referrer sending switched off.
|
|
|
|
|
Why Boonex is a scam?
Boonex problem nr1. No coding standard
Boonex is writen by several people using different technologies. Its main base (Dolphin) is writen in pure php with its own template engine and forum (Orca) uses xlst. That has large negative impact to integration of forum in site and site in forum. When coding, please use single technology and template system.
Whats even worser, different parts of dolphins code itself is writen by completely different people, and very in the hurry. So everyone has its own imagination how to interact with different parts of the code. It is very tricky to modify code that way to suit site needs.
Boonex problem nr2. Template engine and separation of code/design/database
This problem in dolphin/boonex needs a point on its own. Boonex uses custom template system ( that should be called layout system). The blocks of generated html code are pased to specific places in the template. That creates a big headache for programers as they need to search through code for the place where some box is generated. It might be generated in template, or in specific function in one of numerous includes. And so on. Even pligg has better templating than this.
It is very tricky to rip boonex templating apart, as whole coding is based on such poor programming practice. They would be better off using existing template system like smarty or similar one.
This leads to problem nr3
Boonex problem nr3. Crapy use of Database
We saw serveral other competing sites launched on boonex, but we did not care much. Why? Becouse when they reach 500-1000 daily visitors they will break apart. The reason for it is very bad programming and use of database.
For example, boonex uses profile builder which assigns fields to profiles. So the output of profile uses more than one table and is quite inefficient.
Also, there is a nice 20-30 query overhead on each page display to fetch all the configuration values from table. Silly, isn’t it ? They would be FAR better of using a file for configuring sofware or caching it in php file like it is done in most of the systems.
Another simple problem. When boonex wants to display a profile being online it additionally check database for its status. But that data was pulled from database already. So 20 useless queries again.
Resume
I would not suggest using boonex if you want to keep your programmers sane. We have have changed the code almost completely for now, and you will need to do that too. Boonex is a scam. Try googling "boonex scam" first.
|
|
|
|
|
|
$PP=$_POST['PurchaserPrice'];
$PQ=$_POST['PurchaserQuantity'];
$PST=$_POST['PurchaserSubTotal'];
$total2=$_POST['total2'];
$id=$_REQUEST['id'];
$num=mysql_numrows($result);
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"item");
$f2=mysql_result($result,$i,"qty");
$f3=mysql_result($result,$i,"Price");
$f4=mysql_result($result,$i,"sub_total");
$f5=mysql_result($result,$i,"Remarks");
$f6=mysql_result($result,$i,"Approve");
echo "$remarks[i],$PP[$i],$PQ[$i],$PST[$i]";
mysql_query("UPDATE tbl_orders SET Approve='1',PurchaserRemarks='$remarks[$i]',PurchaserPrice='$PP[$i]',PurchaserQuantity='$PQ[$i]',PurchaserSubTotal='$PST[$i]',newtotal='$total2' WHERE id='$id',item='$f1',qty='$f2',Price='$f3',sub_total='$f4',Remarks='$f5'");
I have this query but It wouldn't write in the database
|
|
|
|
|
I don't know if you really need all those fields in the WHERE clause, but if you do they should be separated by AND s instead of commas:
UPDATE tbl_orders SET Approve='1', PurchaserRemarks='$remarks[$i]',
PurchaserPrice='$PP[$i]', PurchaserQuantity='$PQ[$i]',
PurchaserSubTotal='$PST[$i]', newtotal='$total2'
WHERE id='$id' AND item='$f1' AND qty='$f2' AND Price='$f3'
AND sub_total='$f4' AND Remarks='$f5'
You should check the return value from mysql_query , then if it fails you can use mysql_error to find out why.
|
|
|
|
|
Hi all.
At the following URL http://blogs.food24.com/Natreen[^], there is/should be an image that must load within the header section of the page. You will notice the header image loads, then disappears.
This only happens in IE, and the path to the image is valid and done via css. View source to see
Can someone please assist?
Thanks
|
|
|
|
|
When I download the page, the background image url is set to ..\images\24topfile_bg.png"
After copying the file to the same folder as all of the other files and adjusting the img url, the bg works in chrome and ie6 just fine.
Still, I can't see why that should make even the slightest iota of difference. :puzzled:
|
|
|
|
|
I have two data grids in a page...both has check box column(for check & uncheck all)...
header template check box id checkall(dg1) & checkall1(dg2)...
item template check box id chkdelete(dg1) & chkdelete1(dg2)...
when i click checkall(dg1) even check boxes in dg2 are selected...but when i click checkall1(dg2) only dg2 is clicked...
this is js i'm using...i know there is a silly mistake, but donno where to fix it...
(dg1)
function CheckAllDataGridCheckBoxes(CheckBoxControl)
{
var frm = document.forms[0];
if (CheckBoxControl.checked == true)
{
var i;
for (i=0; i<frm.length; i++)
{
if (frm.elements[i].name.indexOf('chkdelete')!=-1)
{
document.forms[0].elements[i].checked = true;
}
}
}
else
{
var i;
for (i=0; i<frm.length; i++)
{
if (frm.elements[i].name.indexOf('chkdelete')!=-1)
{
document.forms[0].elements[i].checked = false;
}
}
}
}
(dg2)
function CheckAllDataGridCheckBoxes1(CheckBoxControl)
{
var frm = document.forms[0];
if (CheckBoxControl.checked == true)
{
var i;
for (i=0; i<frm.length; i++)
{
if (frm.elements[i].name.indexOf('chkdelete1')!=-1)
{
document.forms[0].elements[i].checked = true;
}
}
}
else
{
var i;
for (i=0; i<frm.length; i++)
{
if (frm.elements[i].name.indexOf('chkdelete1')!=-1)
{
document.forms[0].elements[i].checked = false;
}
}
}
}
|
|
|
|
|
The online visible difference is on this line;
if (frm.elements[i].name.indexOf('chkdelete')!=-1)
Compared to
if (frm.elements[i].name.indexOf('chkdelete1')!=-1)
Could it be that the first should point to "chkdelete2" or something similar?
I are Troll
|
|
|
|
|
yea after changing that...it got fixed...after posting it, i thought of that
thanx bro...
|
|
|
|
|
You're welcome
I are Troll
|
|
|
|
|
I have an asp page with two repeaters on it that each contain a ul list that I bind in the Page_Load method when the page loads and everything works hunky dorey. Once the page is loaded I use JQuery to move the items from one list to the other an example of what I am doing can be found here[^], and that works great. When I submit the page I pass the information regarding what items where moved etc.. using a hidden field and can access it server side just fine. But my problem lies in that the OnItemDataBound does not get called when a post back is done and even if it did I think it would be out of sequence and I would not be able to do the binding that way either. So my question is, is there a way using ajax or whatever to get the repeaters to rebind somehow.
I hope this makes sense
Thanks,
Mike
"It doesn't matter how big a ranch ya' own, or how many cows ya' brand, the size of your funeral is still gonna depend on the weather." -Harry Truman.
Semper Fi
http://www.hq4thmarinescomm.com[ ^]
My Site
|
|
|
|
|
I want to understand how I can difference two request which were rised at the same time??
for example:User A want to buy some product and this product has price for example 5$, this User has only 10$ and increase price to 10$ but at the same time another User B increases price too, and his request postback faster than User A, because A has Slow internet...When A's request at last reaches to the server price is already changed and it's 10$ because of B and after that it will be 15$...
sorry for my English
C# Developer
|
|
|
|
|
I need to setup a web page so that a user cannot select text AND images. I am currently using
onselectstart="return false;"
in the body tag and that works fine for text, but images can still be selected.
This project is not a general purpose/public access website. I am building a kiosk-style system using HTML and Google Chrome as the browser. The system is designed to be interacted with via touch screen. Currently, if the user slightly moves their finger while touching an icon, the browser selects the icon and highlights it in blue. This isn't visually desirable. Is there a way to prevent this without modifying the Google chrome source code. I'm pretty sure I've seen sites that do something like this, but I can't find one right now and I'm just not sure what is the best method.
Thanks
|
|
|
|
|
Also use
ondragstart="return false"
It will solve your problem
|
|
|
|