Hello people.
I have a website portal where I am trying to delete an object, by pressing a button. It does not work and I am getting an error. The HTML part of the request is following:
[HTML]<a href="javascrip t:makeRequest(' set/post.php?actuee l&del&[[ID]]');" onclick="return confirm('Weet u zeker dat u dit item wilt verwijderen?')" onmouseover="dr agable = false" onmouseout="dra gable...
User Profile
Collapse
-
Ajax Request problem
-
I mean 'PNGs' on the last reply. -
Hello, I have been busy for a while. Yes, the problem was solved accidentally. I had some other pictures (PBGs) on the site and because of that I had to make a fix not to mess up the transparency. Fortunately this fixed also the problem with the main picture.
Thanks for everyone.Leave a comment:
-
Problem with picture
Hey everyone.
I have a strange problem with PHP site. This only happens in IE 6.
So, when user logs in there is a placeholder for user's own picture. Also there is a form where this picture can be loaded. The problem is that the picture won't show in main page, but shows in the loading form.
The main page works with following code:
[HTML]
<div style="position :absolute;left: 0;top:30px;heig ht:130px;width: 130px;backgroun d-image:url('afbe eldingen/[[profielafbeeldi ng]]');background-position:center ;"... -
So, I decided to replace those problematic signs (<, & ). Couldn't come up with other solution. And nathj, thanks for the tip for stripslashes() function.
Thanks for all the help on this case.Leave a comment:
-
Ok, I have discovered few other errors. Additionally sign '<' also causes same behavior. Also when I add " or ' the massage becomes \' or \". I am starting to suspect the XML part for the source of the error.Leave a comment:
-
That is correct! I am able to echo before sending, but the message body is empty every time.Leave a comment:
-
XML_unserialize () is basically taking the XML string and making it to be object, which in this case can be used as $vars['root']['opmerking'] for posting the value of 'opmerking' as the text field for e-mail message.Leave a comment:
-
Well, as an example any of these strings will cause problems:
This is test & example mail.
This mail includes '&' sign.
!@#$%^&*()_+
With other words, when '&' is present it causes the error. I tried to replace the '&' with some example text and it does not work although for example replacing 't' with 'R' works perfectly and the message gets through with the replacement.Leave a comment:
-
Well, the message text can be what ever user chooses to type in, but the text area itself is assigned through line
[code=php]
$page->assign("textOp merking",$form->textarea("opme rking","",40,15 ));
[/code]
and the text are itself is defined in different file like:
[code=php]
function textarea($name, $value="",$cols =40,$rows=4,$js = false,$class...Leave a comment:
-
Yes, I got the point with that replace function. But for now it seems that it does not work. I does not even work when I try to replace '&' with 'and' as for test. And the fact remains that message text is deleted when '&' mark is posted. This is a very strange problem.Leave a comment:
-
Yes, simply part of the message. I would like the message keep the same form when received, so & should not be 'and'.Leave a comment:
-
Thanks for the quick reply. Yes I will post the code. It basically checks the users registered 'location' and according to that choose e-mail address to be send the post.
[code=PHP]
$city = $_GET['city'];
$user = new user();
$address = $user->SQL->query("selec t email FROM tblRegios WHERE plaats='".$city ."'");
if (sizeof($result = $user->SQL->result()))...Leave a comment:
-
Problem with '&' charachter.
Hey.
I have a problem with "&" character. When I try to send a mail from web application and I include '&' to the post the whole message shows empty when send it through. So what can I do to prevent this?
Thanks in advance! -
Ok, this problem is solved by using Jquery functionality. Problem was caused by the fact that code was executing other functions at the same time, simple "async: false" in new solution did the trick. Thanks for the help anyway.Leave a comment:
-
Yes, it is enabled and showing the red text in case of POST.
In additionally the page is using other form the send emails. This form is using same posting methods and showing same failures in Javascript function's last line (which I posted in the question). As a result sometimes the mail gets send and sometimes it does not.
When I remove the last line in Javascript the error does not occur, but of course the functionality...Leave a comment:
-
The funny part with the firebug error is that it does not describe any error, just displays the red 'X' indicating that something went wrong.Leave a comment:
-
I am pretty sure the answer is yes, it's passed as ID.
The page is basically TPL file where text field and submit button are assigned in PHP file. So the template is basically using tag like <td>[[textOpmerking]]</td> as text field identifier.Leave a comment:
-
Oh yeah now I got it. Here is the code:
[code=javascript]
function get(obj) {
var getstr = "";
var i = 0;
if (obj!=false && obj!=null) {
if (obj.tagName.to UpperCase()!="I NPUT" && obj.tagName.toU pperCase()!="TE XTAREA" && obj.tagName.toU pperCase()!="SE LECT") {
if (obj.tagName.to UpperCase()!="F ORM")...Leave a comment:
-
No activity results to display
Show More
Leave a comment: