User Profile

Collapse

Profile Sidebar

Collapse
zamuel
zamuel
Last Activity: Sep 23 '08, 08:53 AM
Joined: Sep 27 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • zamuel
    started a topic Ajax Request problem

    Ajax Request problem

    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...
    See more | Go to post
    Last edited by gits; Sep 16 '08, 10:26 AM. Reason: fix code tags

  • zamuel
    replied to Problem with picture
    I mean 'PNGs' on the last reply.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with picture
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    started a topic Problem with picture

    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 ;"...
    See more | Go to post

  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    That is correct! I am able to echo before sending, but the message body is empty every time.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    Yes, simply part of the message. I would like the message keep the same form when received, so & should not be 'and'.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Problem with '&' charachter.
    in PHP
    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()))...
    See more | Go to post

    Leave a comment:


  • zamuel
    started a topic Problem with '&' charachter.
    in PHP

    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!
    See more | Go to post

  • zamuel
    replied to Ajax Posting problem
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Ajax Posting problem
    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...
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Ajax Posting problem
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Ajax Posting problem
    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.
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Ajax Posting problem
    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")...
    See more | Go to post

    Leave a comment:


  • zamuel
    replied to Ajax Posting problem
    Hmmmm...tried with code tags, but apparently didn't work.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...