General

Ask Experts & get answers to your questions - ASAP

Ask an Expert,
Get an Answer ASAP!

I am using moonfruit to build my website... I am currently…

Customer Question
I am using moonfruit to...

I am using moonfruit to build my website... I am currently using a sub domain of moonfruit while I develop the site....moonfruit uses html snippets... I created an Iframe of a back page of the website to be a news feed that can be displayed in multiple parts of the website.. The links in the iframe reopen in the iframe...I need the iframe links to open in the parent page, not the iframe itself.


 


I have tried adding links in html snipets like


 


 <a href=http://www.somelink.com target="_parent">some link text </a>


 


I have placed this html snipet which appears in the iframe and it still opens in the iframe itself, not the parent.


 


 


 

Submitted: 6 years ago.Category: General
Show More
Show Less
Ask Your Own General Question
Answered in 5 hours by:
3/14/2012
Expert: WebDevPro,
 replied 6 years ago
WebDevPro
Category: General
Satisfied Customers: 5
Verified

WebDevPro :

Hello,Customer Links open in a new window utilizing the following HTML element and attribute: <a href=http://www.somelink.com/ target="_blank.">some link</a>. The "_parent" attribute is utilized for opening anchor tags within the current frame, which isn't necessary unless you're using frames. If you want it to open in the main window, then you would use the "_top" attribute. Please let me know if my answer resolves your problem.

Customer:

Nope, does not work....The link still opens in the iframe itself...the site is www.odesktest.moonfruit.com.... I have used attribute "parent" "top" "blank"...they all still open in the iframe

Customer:

I want the link in the iframe to open in the parent page connected to the same domian

Customer:

i'm here

WebDevPro :

Hello, pleased to "e-meet" you.

Customer:

lol, yea, u 2

Customer:

i have spent about 14 hours trying to figure this out, im really annoyed

Customer:

lol

WebDevPro :

welcome to my world ;)

WebDevPro :

I'm not really that familiar with moonfruit, but it seems quite strange that "_top" didn't work. I'd almost guess there's some backend code not being recognized by their page-building system.

Customer:

I was thinking the same also, could it be because its on a sub domain?

WebDevPro :

No, HTML is HTML. Do you know if they permit the use of inline JavaScript?

Customer:

I really do not know, its just a html snippet box, i can put whatever code i want in the box

WebDevPro :

Here's another potential option <a href=http://somelink.com onclick="javascript:window.open()" />somelink</a>

Customer:

okay ill try it out now

WebDevPro :

Then within the parentheses you use the name of the page, eg. onclick="javascript:window.open("page_name.htm");"

WebDevPro :

Guess I lost you. :)

Customer:

ok ill send you the link i put in the html box

Customer:

<a href=http://odesktest.moonfruit.com/#/photos/4561934554onclick="javascript:window.open()" />somelink</a>


 

WebDevPro :

Slightly modified: <a href="http://odesktest.moonfruit.com/#/photos/4561934554" onclick="javascript:window.open();" />somelink</a>

WebDevPro :

Do you know the name of the page you're working in?

WebDevPro :

If so, you would put that page name between the parentheses.

Customer:

Photos it is labled

Customer:

in the organise pages

Customer:

okay, i will put photos between the () and see if it works

Customer:

<a href="http://odesktest.moonfruit.com/#/photos/4561934554" onclick="javascript:window.open(photos);" />somelink</a>


 

Customer:

that is what i put, it does not work...do I need to clear history or somthing maybe to make it work?

Customer:

The link works, however it still opens in the iframe itself, not in the parent page

WebDevPro :

Sorry, I wasn't clear. You would put something like window.open('photos.htm') or whatever the actual name of the page is.

Customer:

What do you mean by name? it is labled phots, but the adress is photos/456 etc...

WebDevPro :

If that doesn't work, then there is something definitely going on with moonfruit putting something within the back-end code because I just tested this by writing two pages and it worked like a snap.

Customer:

"photos" i mean

WebDevPro :

so there's no page name at the end like photos/456.htm or photos/456/index.htm?

Customer:

no, i just name the pages on a page labler, where you can add or delete pages

Customer:

http://odesktest.moonfruit.com/#/photos/4561934554 thats the link for the photos page...its labled photos on the page creator, thats it..I don't actually see the code of the website

WebDevPro :

Aaah... sounds like maybe they're using PHP. Okay, for grins try this as the page name: index.php

WebDevPro :

So: javascript.window.open(index.php)

WebDevPro :

sorry, javascript:window.open('index.php')

Customer:

<a href="http://odesktest.moonfruit.com/#/photos/4561934554" onclick="javascript:window.open('index.php');" />somelink</a>


 

Customer:

it did somthing, it opened a new window

Customer:

but directed me to the homepage still

Customer:

in the new window

WebDevPro :

A-ha! So okay, try:

WebDevPro :

<a href="http://odesktest.moonfruit.com/#/photos/4561934554" onclick="javascript:window.open('http://odesktest.moonfruit.com/#/photos/4561934554');" />somelink</a>

Customer:

thats good, except it opens in a new browser window


 

Customer:

this is good :)...can we make it open in the same browser window?


 

WebDevPro :

good, we're close... very close! Try javascript.window.open('./4561934554')

Customer:

<a href="http://odesktest.moonfruit.com/#/photos/4561934554" onclick="javascript:window.open('./4561934554');" />somelink</a>

Customer:

still new browser window

WebDevPro :

hmmmm....

WebDevPro :

well, the second parameter in window.open() method is the target. Maybe:

WebDevPro :

<a href="http://odesktest.moonfruit.com/#/photos/4561934554" onclick="javascript:window.open('http://odesktest.moonfruit.com/#/photos/4561934554', '_top');" />somelink</a>

Customer:

wow! it worked!

Customer:

thank you!

WebDevPro :

You are very welcome!

WebDevPro :

Doesn't it feel great? :)

WebDevPro :

Now you can sleep soundly.

Customer:

yes, that was fun

WebDevPro :

I'm glad I could help you.

Customer:

i have another problem though,


i do have a question though, after i clicked the link, and clicked back, the iframe contents is gone

Customer:

a # XXXXX after www.odesktest.moonfruit.com, after i click the link and go back to the main page, the iframe content is no longer there

Customer:

should i make a new question?

Customer:

for you?

WebDevPro :

No, that shouldn't be much of a problem. Try changing '_top' to '_parent' and see what happens.

Customer:

are you from the us? will do

WebDevPro :

Yes, I'm American.

Customer:

me too...

Customer:

<a href="http://odesktest.moonfruit.com/#/photos/4561934554" onclick="javascript:window.open('http://odesktest.moonfruit.com/#/photos/4561934554', '_parent');" />somelink</a>

Customer:

opens in iframe now

Customer:

i changed it back to top incase you went to site

Customer:

http://odesktest.moonfruit.com/# XXXXX then iframe contents is missing

Customer:

with the # XXXXX it, need to reload page without # XXXXX get iframe contents back

WebDevPro :

Okay, you have access to the actual <iframe></iframe> element, correct?

Customer:

yea

Customer:

ill send you info

Customer:

<html>
<body>


<iframe src="http://odesktest.moonfruit.com/#/about/4561934553" width="500" height="500">
<p>Your browser does not support iframes.</p>
</iframe>


</body>
</html>


 

WebDevPro :

<iframe src="http://odesktest.moonfruit.com/#/about/4561934553" width="500" height="500" onload="javascript:location.reload(true);">

WebDevPro :

try the above

Customer:

ok 1 sec

Customer:

iframe is appearing blank

Customer:

<iframe src="http://odesktest.moonfruit.com/#/about/4561934553" width="500" height="500" onload="javascript:location.reload(true);">


 


</body>
</html>


 

Customer:

whoops

Customer:

i had body tages at the end

Customer:

do i need opeing body tages and html tags?

Customer:

my bad, let me try again

WebDevPro :

You need the closing </iframe>

Customer:


<iframe src="http://odesktest.moonfruit.com/#/about/4561934553" width="500" height="500" onload="javascript:location.reload(true);"</iframe>

Customer:

thats how i put it in the snippet, appears blank

WebDevPro :

hmmm, what browser are you using?

Customer:

internet explorer

Customer:

i didnt put any body or html tags, just that

WebDevPro :

Oh, you need the html and body tags, otherwise the browser doesn't know how to render anything in it.

WebDevPro :

and remove that javascript I sent you. The reason it's not appearing is because the page is repeatedly reloading; it's in a loop.

Customer:

ill try it now, i just did it, ill try urs

Customer:

sorry, let me try again

WebDevPro :

Yeah, see if you hover your mouse over where the iframe is at on the home page you'll see your mouse cursor begin to spin. oops, that's not right.

Customer:

<html>
<body>


<iframe src="http://odesktest.moonfruit.com/#/about/4561934553" width="500" height="500" onload="javascript:location.reload(true);"</iframe>


</body>
</html>

Customer:

that is wat i put, its blank

Customer:

my test computer im using is mozzilla browser

WebDevPro :

remove the onload="javascript:location.reload(true);" from the iframe tag and that should fix it being blank.

Customer:

<html>
<body>


<iframe src="http://odesktest.moonfruit.com/#/about/4561934553" width="500" height="500"
</iframe>


</body>
</html>

Customer:

thats how it is, still blank

Customer:

im sorry its not blank

Customer:

but still loads blank when i go back, let me try again the first time you said too

Customer:

im going to accept your anwser, you have been really helpful, i would of accepted even if you didnt figure it out :)

WebDevPro
Category: General
Satisfied Customers: 5
Verified
WebDevPro and 87 other General Specialists are ready to help you
Ask your own question now
Customer reply replied 6 years ago
whoops, didnt know it would kick me out..lol
Customer reply replied 6 years ago

ill be back with more questions, might be back with the other question on the iframe tomorrow!

Customer reply replied 6 years ago

for some reasson, if the link to the homepage does not include the www. after the http://, it will not reload the iframe...

 

for example http://odesktest.moonfruit.com does not reload the iframe, but http://www.odesktest.moonfruit.com does reload the iframe....that is my button link ofcourse...

 

Thank you so much! I'm going to need your help in the future!

 

[email protected]

Customer reply replied 6 years ago
Expert: WebDevPro,
 replied 6 years ago
I saw that. Good deal! Don't hesitate to touch back if you need further assistance and best wishes on your new website. You're on your way!
Ask Your Own General Question
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with an expertLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask WebDevPro Your Own Question
WebDevPro
WebDevPro
WebDevPro
Category: General
Satisfied Customers: 5
5 Satisfied Customers

WebDevPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

Ellen

Ellen

Consultant

109 satisfied customers

attorney and legal researcher

P. Simmons

P. Simmons

Attorney

149 satisfied customers

45 years old, retired Marine Officer, current attorney

Kim D.

Kim D.

Consultant

34 satisfied customers

Researcher 25 yrs in small and large institutions

SuperiorConsultant

SuperiorConsultant

Internet Researcher

21 satisfied customers

BBA, serving as Marketing Executive and interested in tourism,sports, and anything and everything!

Michael

Michael

Librarian

1,903 satisfied customers

20+ years as information professional

Cher

Cher

Educator-40+ yrs

1,702 satisfied customers

M.A., B.A., Author, Information & Research Specialist

Martin

Martin

Engineer

886 satisfied customers

i'm 41 and i never stopped studying and experimenting

< Previous | Next >

Related General Questions
Teacher only: Could you send me different packs and pictures
This question is for Sarah Teacher only: Could you send me different packs and pictures of a furnished studio apartment on the Aqua at Lakeshore East Apartment Building on Chicago? I need them not to … read more
Sarah
Sarah
Teacher
Master\u0027s Degree
19 satisfied customers
Is there another way to sell clothes outside of your own
Is there another way to sell clothes outside of your own website or eBay that you would recommend? Not amazon… read more
Nicholas Merwood
Nicholas Merwood
Masters
10 satisfied customers
, I need to edit the following text . ---------------------------------------
Hi, I need to edit the following text for errors. ------------------------------------------------- Our Story NewsBox is a publishing, subscription and monitoring platform owned by Connectus. NewsBox … read more
Khristopher N. Sines AACJ, BSHS/M, MS/P
Khristopher N. Sines AACJ, BSHS/M, MS/P
General Manager
Master\u0027s Degree
229 satisfied customers
need a road map for my web development learning.hello there,i
need a road map for my web development learning. hello there, i just started learning web design and development using the internet since we dont have real up to date colleges here. but i been struggl… read more
Chris L.
Chris L.
IT/Web Manager
Vocational, Technical or Trade Scho
30 satisfied customers
If ads created with postlets.com are no longer accepted on
If ads created with postlets.com are no longer accepted on Craigslist, what ad template service will Craigslist accept? Postlets have worked well for me because the templates are attractive and easy t… read more
Ms.LLN
Ms.LLN
Librarian
Master\u0027s Degree
14 satisfied customers
This is the problem that I am facing. I created a site on
Hi, this is the problem that I am facing. I created a site on Dreamweaver using fluid grids, therefore my site appears differently on a phone, tablet and different browsers.. I am using my schools ftp… read more
Expert
Expert
I recently closed my site after months of anguish trying to
I recently closed my site after months of anguish trying to get help from Auto Power Blogs on " Sign up " documents. Apparently everything was working except I had no ( submit) button and was therefor… read more
pdheslin
pdheslin
Intuitive Consultant
51 satisfied customers
I have a 4'X8' reverse gold leaf painting of a. I purchased
I have a 4'X8' reverse gold leaf painting of a King. I purchased it 30 years ago in the the UK. It's extremely old, however its in excellant condition. How much is it worth ?… read more
C&A Appraisals (Randi)
C&A Appraisals (Randi)
Certified Appraiser
Vocational, Technical or Trade Scho
1,259 satisfied customers
What are the key questions one should ask when considering
What are the key questions one should ask when considering a marketing or advertising campaign - besides does it reach the target market?… read more
Expert
Expert
Hey John, I have new SQL question if you are available. It
Hey John, I have new SQL question if you are available. It involves connection a third party application to a SQL database.… read more
Expert
Expert
My joomla 1.6 software keeps rejecting my amazon astore html
My joomla 1.6 software keeps rejecting my amazon astore html code, which should produce a banner with text and grahpics and the name of my astore. I've tried using the link in html and wsiwyg; I've tu… read more
Computer-Web-Justin
Computer-Web-Justin
129 satisfied customers
I recently became involved with fidelitymerchantssolutions.net
I recently became involved with fidelitymerchantssolutions.net which also uses targetedplanet.com BDE.com (business development enterprise) & was told I could make money as a representative on-line & … read more
Zoey, JD
Zoey, JD
Doctoral Degree
198 satisfied customers
I am trying to replicate the same intro as http //www.corninggorillaglass.com/
I am trying to replicate the same intro as http://www.corninggorillaglass.com/ but I don' t know how. How do you create a sliding intro cover page that automatically slides away after a few seconds an… read more
Expert
Expert
This is a building Codes question Sec 304.1 of 2007 FBC added
This is a building Codes question: Sec 304.1 of 2007 FBC added another Business Occupancy to include "training and skill development not within a school or academic college" If a training room is larg… read more
M.Arch
M.Arch
Senior Studio Manager
Master's Degree
544 satisfied customers
Id like to start an online bookstore in Brazil and I
I'd like to start an online bookstore in Brazil and I was wondering if it's possible to copy the inventories of popular bookstores there and some sites that sell used books. If it's possible, should I… read more
Ed Johnson
Ed Johnson
Senior HR Consultant and Business Devlpm
Bachelor's Degree
6,994 satisfied customers
What type of vinyl is used on those indoor LED EXIT ...
What type of vinyl is used on those indoor LED EXIT signs. I've tried normal, reflective and translucent. None of these types will light up like the vinyl on those signs. The adhesive on the letters i… read more
tex-eng
tex-eng
New product development engineer
Bachelor Degree
650 satisfied customers
How to start my own advice column online and get paid?
I want to start my own website; advice website that can be seen by the public free of charge and where they can write on my website about a question or problem they have, and so I could give them some… read more
Dave Z
Dave Z
Self-Employed
Bachelor
418 satisfied customers
Starting a business that deals with construction clean up.
Start a business that deals with post construction clean up that also includes window cleaning for hospitals.… read more
Dave Z
Dave Z
Self-Employed
Bachelor
418 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x