Username: Password:

Author Topic: Message Popup windows  (Read 16716 times)

Mip104

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 699
    • View Profile
Message Popup windows
« on: May 06, 2010, 04:28:35 pm »
How can we search a text in the message alert popup windows, is it in "page" or "hearder" or "url"

Mip104

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 699
    • View Profile
Re: Message Popup windows
« Reply #1 on: May 06, 2010, 05:49:17 pm »
As there is no page loaded yet, so I think it should be in header, am I right?

Zydio

  • Administrator
  • Hero Member
  • *****
  • Posts: 2111
  • goText++ Desk! author
    • View Profile
    • goText++ Desk! homepage
Re: Message Popup windows
« Reply #2 on: May 06, 2010, 06:05:31 pm »
How can we search a text in the message alert popup windows, is it in "page" or "hearder" or "url"
What do you mean by message aler popup windows? If you mean the same popup window as the one used in this forum to notify you of the presence of new Personal Messages, those are javascript alert() messages, and you will find them in the HTML page or some referenced javascript..and this is true even if it is shown before anything else on the page (maybe the javascript call it is the first, or only, content of the page..or it appears because of some AJAX reply).

As there is no page loaded yet, so I think it should be in header, am I right?
You never see anything of the HTTP header while browsing, the header contains no "visual" informations.

Mip104

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 699
    • View Profile
Re: Message Popup windows
« Reply #3 on: May 07, 2010, 05:54:31 am »
So this is another pain of that site, it shows its sent message in an alert message "SMS SENT" but it is now existed in the HTML codes

mohammad

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • SMS
Re: Message Popup windows
« Reply #4 on: May 16, 2010, 04:05:15 pm »
In some of sites to send sms an popup window appears to confirm sending sms
how we can solve that!

Zydio

  • Administrator
  • Hero Member
  • *****
  • Posts: 2111
  • goText++ Desk! author
    • View Profile
    • goText++ Desk! homepage
Re: Message Popup windows
« Reply #5 on: May 16, 2010, 04:48:14 pm »
In some of sites to send sms an popup window appears to confirm sending sms
how we can solve that!
You have to provide a sample so that I can help you.

Sites using popup windows are already supported: O2 Ireland is an example.
A popup window is always started from a user action (click on a link with target="_blank"), or with a javascript (window.open).
Either way it is simply and really a GET url request, nothing more nothing less!
You have to find where in the previous page (or included javascript files) the popup url can be found, or if it is a static url simply get it from the firefox extension or whatever you use to see the data exchanged by the browser.

mohammad

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • SMS
Re: Message Popup windows
« Reply #6 on: May 16, 2010, 06:57:20 pm »
The Script is like  this:
  <input type="submit" name="operation" value='Send message' onclick="return confirmOperation();" class="button" style="width:130px">


function confirmOperation() {
        var form = document.sendSmsForm;
       
        if (form.smsMessage.value.length > 0) {
            var single = 0;
            if (form.telephone.value.length > 0){
                single = 1;   
            }
            var contact = 0;
            if (form.selContactsNos) {
                for (i=0; i<form.selContactsNos.options.length; i++) {
                    if (form.selContactsNos.options.selected) {
                      contact++;
                    }
                }   
            }
            var group = 0;
            if (form.selGroupsUniques) {
                for (var idx = 0; idx < form.selGroupsUniques.length; idx++) {
                    if (form.selGroupsUniques[idx].checked) {
                        group++;
                    }
                }
            }
            var partcounter = 1;
            if (form.partcounter){
                partcounter = form.partcounter.value;
            }
            var sMsg = 'Press OK to send ' + partcounter + ' message(s) to'
           
            if (confirm(sMsg + '\nMobile phone: ' + single + '\nContacts: ' + contact + '\nGroups: ' + group)) {
                return true;
            } else {
                return false;
            }
        } else {
            var err = 'You can not send an empty message<br>';
            err = err.replace('<br>','');
            alert(err);
            return false;

Zydio

  • Administrator
  • Hero Member
  • *****
  • Posts: 2111
  • goText++ Desk! author
    • View Profile
    • goText++ Desk! homepage
Re: Message Popup windows
« Reply #7 on: May 16, 2010, 07:04:22 pm »
This script does nothing, does only some validation and if everything's ok it allows the submit to be completed.

But the confirm() function may open the other window, please fetch that function in the javascript(s)!

mohammad

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • SMS
Re: Message Popup windows
« Reply #8 on: May 16, 2010, 07:19:18 pm »
I tried but no success
i should confirm
but can't catch any link there

Zydio

  • Administrator
  • Hero Member
  • *****
  • Posts: 2111
  • goText++ Desk! author
    • View Profile
    • goText++ Desk! homepage
Re: Message Popup windows
« Reply #9 on: May 17, 2010, 11:58:30 am »
Sorry, confirm() is a standard javascript function that shows a popup like alert() but with the choice you showed in the screenshot.

You can ignore it, it is used only use it to cancel or complete the submission based on user reply..it doesn't change the data sent.

You just need to send the form data to the form target page!
You simply need to read the <form> tag and the inputs, as always.

mohammad

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • SMS
Re: Message Popup windows
« Reply #10 on: May 17, 2010, 12:06:40 pm »
Thank you Zydio

I saw one extr vriable is required to send via post and it worked
but there is a bit delay to send i think it is because of confirmation window

Zydio

  • Administrator
  • Hero Member
  • *****
  • Posts: 2111
  • goText++ Desk! author
    • View Profile
    • goText++ Desk! homepage
Re: Message Popup windows
« Reply #11 on: May 17, 2010, 12:12:19 pm »
Thank you Zydio

I saw one extr vriable is required to send via post and it worked
but there is a bit delay to send i think it is because of confirmation window

If you think you have to add a small delay, or waiting time, you can put the following attribute in a <page> or <captcha> tag:
Code: [Select]
wait_before="1500" the number is the milliseconds to wait.... 1,5 seconds in the example.

aryansk

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Message Popup windows
« Reply #12 on: September 19, 2010, 11:32:47 am »
 Popup windows are additional browser window opened from a web page. The popups are opened programmatically using JavaScript.

JavaScript Popup windows are used widely for displaying advertisements. It is a proven method of generating good income from a website.





http://www.**************.com/    --edit by Zydio:spam link removed---
« Last Edit: September 19, 2010, 06:09:52 pm by Zydio »

Mip104

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 699
    • View Profile
Re: Message Popup windows
« Reply #13 on: September 19, 2010, 12:26:22 pm »
mmm, it seems such an spammer

Zydio

  • Administrator
  • Hero Member
  • *****
  • Posts: 2111
  • goText++ Desk! author
    • View Profile
    • goText++ Desk! homepage
Re: Message Popup windows
« Reply #14 on: September 19, 2010, 06:10:26 pm »
Popup windows are additional browser window opened from a web page. The popups are opened programmatically using JavaScript.

JavaScript Popup windows are used widely for displaying advertisements. It is a proven method of generating good income from a website.





http://www.**************.com/    --edit by Zydio:spam link removed---

Did you know that a spam link inside a normal post still qualifies you as spammer?
You are banned.