Jump to content


Photo

URL_OPEN_FULL - Illegal Argument Count


  • Please log in to reply
7 replies to this topic

#1 Hod

Hod

    GMC Member

  • New Member
  • 41 posts
  • Version:GM:Studio

Posted 07 June 2012 - 11:06 PM

So I've been playing around with the url_open function and like what I'm seeing. The url_open works fine but as soon as I try url_open_full or url_open_ext, I get an error "Illegal argument count"

What I'm trying to open it straight out of their help information:

url_open_full( 'http://yoyogames.com' '_self', 'resizable=0, height=200, scrollbars=0');

Any ideas.
  • 0

#2 @Alex@

@Alex@

    Retired GMC Reviewer

  • Reviewer
  • 3071 posts
  • Version:Unknown

Posted 07 June 2012 - 11:19 PM

This will open the specified URL on the browser of the chosen target device, or, if you are using the HTML5 module, in the currently open browser. The "target" parameter that you specify is the same as the standard JavaScript "name" value when you use the open() method (be aware that all but '_self' may result in the browser blocking, or asking the user if they wish to allow it) and the "options" is the same as the Java Script "specs" prameter for controlling what properties the new window/tab should display (not all browsers may support all features).


It works fine on html5 from my tests but not with the windows runner. Right enough its listed under Platform Specific Functions for HTML5, it will not work in windows/iOS/Android it appears.

Edited by @Alex@, 07 June 2012 - 11:21 PM.

  • 0

#3 Hod

Hod

    GMC Member

  • New Member
  • 41 posts
  • Version:GM:Studio

Posted 07 June 2012 - 11:21 PM

I'm working on the Android. What does it mean for that?
  • 0

#4 @Alex@

@Alex@

    Retired GMC Reviewer

  • Reviewer
  • 3071 posts
  • Version:Unknown

Posted 07 June 2012 - 11:23 PM

HTML5 Specific. It likely will not function on Android or iOS at the moment.
  • 0

#5 GameDevDan

GameDevDan

    Procrastinator

  • Reviewer
  • 941 posts
  • Version:GM:Studio

Posted 08 June 2012 - 12:09 PM

I'm working on the Android. What does it mean for that?


You don't really need to set a target or window size on android as any url will open in the browser at the usual resolution...
  • 0

#6 ChefDavid22

ChefDavid22

    No, YOU shut up!

  • GMC Member
  • 1193 posts
  • Version:GM:Studio

Posted 08 June 2012 - 04:00 PM

Hod - if you dont find a solution I will be home in a few hours and will look up how I did it and post the code.
  • 0

#7 ChefDavid22

ChefDavid22

    No, YOU shut up!

  • GMC Member
  • 1193 posts
  • Version:GM:Studio

Posted 08 June 2012 - 07:49 PM

Hod use this:

YoYo_OpenURL("http://www.yourwebsite.com");

This works on android and ios.
  • 0

#8 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16795 posts
  • Version:GM:Studio

Posted 08 June 2012 - 07:54 PM

Hod use this:

YoYo_OpenURL("http://www.yourwebsite.com");

This works on android and ios.


That is a deprecated function and is now called url_open(). What Hod is using is the _ext version of this which is NOT compatible with other platforms...

PS: Don't double post Posted Image. (use EDIT)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users