Add a Custom Google Search Engine

Posted by gerdami on 08 May 2007 12:43, last edited by GoVegan on 09 May 2010 05:28

: gadget google search search_engine

rating: +16

This HowTo describes step by step how to add a customised Google search engine to a Wikidot webpage.


Method 1:

(Use the code from Google CSE: "Edit Search Engine" => "Control Panel" => "Code")

Instructions

Step 1: "Html" scripting on a page

(1) Make a new page in your site called: "yoursitename.wikidot.com/code-blocks

(2) Enter this code inside:

[[code type="html"]]
<html>
</html>
[[/code]]

(3) Save then clear your browser cache and refresh the page.



Step 2: Get the Google CSE Code

(1) Go to the web site of your search engine

(2) Log in

(3) Click on "Edit Search Engine":

maki_step2a.Png

(4) Click on "Control Panel":

maki_step2b.Png

(5) Click on "Code":

maki_step2c.Png

(6) Click once in the code box - the code gets automatically selected. Copy it (Ctrl + C) and paste it (Ctrl + V) into the code block you created in "Step 1" - just between the "<html>" and "</html>" tags.



Step 3: Select how to display results

(1) Look up the code for something like "<form action="http://www.google.com/cse" id="cse-search-box">;

(2) Change it to <form action="http://www.google.com/cse" id="cse-search-box" target="_top"> if you want the results to display in the same page;

or change it to <form action="http://www.google.com/cse" id="cse-search-box" target="_blank"> if you want the results to display in a new window/ tab.

If you want the results to display on your Wikidot page instead of a Google hosted page, the procedure is a little bit different. Look here.

(3) Save the page



Step 4: Final

(1) Go to the page where you want to put the search field

(2) Enter this:

[[iframe http://yoursitename.wikidot.com/code-blocks/1 align="middle" frameborder="0" scrolling="no" width="360px" height="40px"]]

You can choose if you want to have a border or not, and how thick it should be, and change the value of "frameborder="0" respectively.
Same holds for "align", "scrolling", "width" and "height". Note that different browsers display the frame with slight differences so test the page before settling on "width" and "height".

(3) Save and you are ready! :)



Additional Instructions: Results hosted on your Wikidot page

(1) From the Google custom search control panel, choose the code function:

googlesearch-code.jpg

(Have a look at this howto:use-html-scripting to understand how to embed the above copied code.)

(2) If everything is done correctly it should work like this (perform a search to see it in action):
Google Search


Become a Master

- for Step 1: http://community.wikidot.com/howto:use-html-scripting
- for Step 3: http://www.developingwebs.net/html/targetattribute.php


Method 2:

(Use the code from: Google CSE's main page => "Add this search engine to your blog or webpage"; in other words:"Google CSE gadget + [[embed]]")

Drawbacks of this method

- clutter: the search field looks like this:

Method 1 Method 2
maki_m1.Png maki_m2.Png


- not properly displayed in some browsers:
The gadget does not get properly displayed in Opera:
http://community.wikidot.com/forum/t-126892
http://community.wikidot.com/forum/t-75551/google-cse-widget-in-opera-9-51

Instructions

This gadget uses the [[embed]] function described Embedding help page. However, it is difficult to find it in the Google Gadgets library at http://www.google.com/ig/directory?synd=open

(1) Go to http://www.google.com/coop to create your customised Google search engine

(2) Follow Google's instructions (It's so easy !)

(3) Go back to http://www.google.com/coop/cse/overview and look for My search engines
step1.jpg(4) Click on homepage
step2.jpg(5) And then on Add this search engine to your blog or webpage
step3.jpg

(6) Click on the Get the code button

(7) Paste it on your wikidot page as follows:

[[embed]]
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/coop/api/007000168596185870345/cse/daaaga1ewj4/gadget&amp;synd=open&amp;w=275&amp;h=65&amp;title=Wikidot&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>
[[/embed]]

(8) And the result is:


About the CSE given as an example above:

This customised search engine currently searches 7 sites:


Google CSE Support

http://www.google.com/support/forum/p/customsearch?hl=en
http://getsatisfaction.com/google/products/google_google_co_op
http://googlecustomsearch.blogspot.com

Method 3:

The method below is slightly easier and allows you to specify whether the search is just on your own site or across the whole internet. It uses a codeblock and iframe combination.

Codeblock

Enter the codeblock below on your page. You can change the presentation, for example remove the border, by altering the CSS properties and values in the div. By using target="google_window" this opens the results in a new window/tab. If you want the results to open in the same page then remove the target=

You will also need to change the url to your own and the text in the value="wikidot.com" checked /> Search Only wikidot.com<br /> line.
As you can see, you can also specify whether the search defaults to your site, in which case you add the word "checked". Or you can search the web by default, in which you enter "unchecked".

[!--
[[code type="html"]]
<html>
 <body>
<form method="get" action="http://www.google.com/search" target="google_window">
<div style="border:1px solid #468259;padding:4px;width:20em;">
<table border="0" cellpadding="0">
<tr><td>
<input type="text" name="q" size="25"
 maxlength="255" value="" />
<input type="submit" value="Google Search" /></td></tr>
<tr><td align="center" style="font-size:75%">
<input type="checkbox" name="sitesearch"
 value="wikidot.com" checked /> Search Only wikidot.com<br />
</td></tr></table>
</div>
</form>
 </body>
</html>
[[/code]]
--]

Iframe

then underneath the codeblock, on the same page, add an iframe to reference that codeblock:

[[iframe http://YOURSITE.wikidot.com/YOURPAGE/code/1 frameborder="0" scrolling="no" width="350px" height="75px"]]

Replace YOURSITE and YOURPAGE with the name of your site and the page where you have put the codeblock. If it is the first or only codeblock on that page then use /code/1, if it's the second then use /code/2 and so on.

This gives the result below:

[フレーム]

About this page

Rate this solution

If you think this solution is useful please increase the rating.

rating: +16

Authors

gerdami gerdami . Please visit his/her userPage.

maki maki . Please visit his/her userPage.

RobElliott RobElliott . Please visit his/her userPage.



page 1 of 21
Pictures
gerdami gerdami 08 May 2007 12:51

Could not upload pictures due to page restrictions. So I linked to another wikidot location.

by gerdami gerdami , 08 May 2007 12:51
Re: Pictures
hartnell hartnell 04 Oct 2007 03:46

Er, gerdami, you are an admin, right? —hartnell

by hartnell hartnell , 04 Oct 2007 03:46
Get an error when adding
devviki devviki 03 Oct 2007 20:43

Get an ajax error when putting this embed statement into a page…
"The ajax request failed. Please check your internet connection or report a bug if the error repeats during your work". Keeps repeating…

by devviki devviki , 03 Oct 2007 20:43
Re: Get an error when adding
hartnell hartnell 04 Oct 2007 03:47

Do you have your own google search coop code to embed? —hartnell

by hartnell hartnell , 04 Oct 2007 03:47
Adsense Search
SamProof SamProof 02 Jan 2009 05:52

Hey does this work with the adsense search automatically (as it's set up in wikidot) or would you have to go set up an adsense search specifically?

by SamProof SamProof , 02 Jan 2009 05:52
Re: Adsense Search
Helmut_pdorf Helmut_pdorf 02 Jan 2009 07:38

Not sure what you mean with "specifically adsense search"?

This has nothing to do with wikidot!

1. You have an account at google and can
2. setup your OWN search machion for specific sites & or sub pages…
3. The adsense coming ( if allowed by you) on such search machine output has nothing to do with wikidot or YOUR adsense setup on wikidot account / site manager.

This is only a search machine limited to specified domains…
Try our search machine on the Search Center and you will see the outcome…


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 02 Jan 2009 07:38
Adding Google Custom Search error
splashpoint splashpoint 24 Oct 2009 13:49
<scriptsrc="http://www.google.com/jsapi"type="text/javascript"></script><scripttype="text/javascript">
google.load('search', '1');
google.setOnLoadCallback(function(){
 new google.search.CustomSearchControl('013549970210526421991:uywkjw_znii').draw('cse');
}, true);
</script>

This is the snippet I got from google. When I pasted onto my webpage I get an error message ' sorry no match for the embedded content'. I use the [[embed]] code block. Can anyone tell me what's wrong? Do I need to specify code type?

Last edited on 25 Oct 2009 01:22 by leiger
by splashpoint splashpoint , 24 Oct 2009 13:49
Re: Adding Google Custom Search error
leiger leiger 25 Oct 2009 01:30

This is a workaround, but it should work…

Open notepad or some other text editor and add this to the editor:

<html><body><scriptsrc="http://www.google.com/jsapi"type="text/javascript"></script><scripttype="text/javascript">
google.load('search', '1');
google.setOnLoadCallback(function(){
 new google.search.CustomSearchControl('013549970210526421991:uywkjw_znii').draw('cse');
}, true);
</script></body></html>

Then save the file as code.html, and upload the file to the wikidot page you're adding it to.

Next, edit the wikidot page, and type this:
[[iframe http://SITENAME.wikidot.com/local--files/PAGENAME/code.html width="100%" height="500px" frameborder="0"]]

Remember to replace the "SITENAME" with your wiki's name, and "PAGENAME" with your wikidot page's name.

I've done the exact same thing here with different code and that method worked fine :)


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

Last edited on 25 Oct 2009 01:32 by leiger
by leiger leiger , 25 Oct 2009 01:30
HTML in Wikidot?
RealG187 RealG187 04 Nov 2009 02:50

Can you use HTML in Wikidot?

by RealG187 RealG187 , 04 Nov 2009 02:50
Re: HTML in Wikidot?
(account deleted) 04 Nov 2009 03:18

Not directly. Only as described above by embedding it a code block or uploading it to a page and then iframing it.

-Ed

by (account deleted), 04 Nov 2009 03:18
Re: HTML in Wikidot?
RealG187 RealG187 04 Nov 2009 03:24

I can't get it working :(

by RealG187 RealG187 , 04 Nov 2009 03:24
NOT WORKING!!
RealG187 RealG187 04 Nov 2009 03:22

http://bestwikiever.wikidot.com/code-blocks

It's not working for me

I want the search to appear on this page:
http://bestwikiever.wikidot.com/mpglinks

Last edited on 04 Nov 2009 03:23 by RealG187
by RealG187 RealG187 , 04 Nov 2009 03:22
(account deleted) 04 Nov 2009 03:29

You're missing the [[iframe ...]] piece of the puzzle.

[[iframe http://bestwikiever.wikidot.com/code-blocks/code/1 width="400px" height="75px" frameborder="0" scrolling="no"]]

yields this result from your page:
[フレーム]

You should also surround your code block with comment tags to hide it on the page:

[!--
[[code type="html"]]
<html>
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#000000;color:#FFFFFF">
 <div class="cse-branding-form">
 <form action="http://operation420.net/search" id="cse-search-box">
 <div>
 <input type="hidden" name="cx" value="partner-pub-3003393768631515:x62wrv-ofyc" />
 <input type="hidden" name="cof" value="FORID:10" />
 <input type="hidden" name="ie" value="ISO-8859-1" />
 <input type="text" name="q" size="31" />
 <input type="submit" name="sa" value="Search" />
 </div>
 </form>
 </div>
 <div class="cse-branding-logo">
 <img src="http://www.google.com/images/poweredby_transparent/poweredby_000000.gif" alt="Google" />
 </div>
 <div class="cse-branding-text">
 Custom Search
 </div>
</div>
</html>
[[/code]]
--]

-Ed

by (account deleted), 04 Nov 2009 03:29
RealG187 RealG187 04 Nov 2009 03:34

No one mentioned I had to add "/code/1" after the URL…

Anyways, thank you for your quick help…

Last edited on 04 Nov 2009 03:34 by RealG187
by RealG187 RealG187 , 04 Nov 2009 03:34
(account deleted) 04 Nov 2009 03:39

You should have a look at this:
http://community.wikidot.com/blog:html-within-wikidot-type-2

Techniques for iframing code blocks are all over the forums, help and how-to pages. I think RobElliott spends 3/4 of his time responding to "How do I embed xxx?" and the answer is always about the same. Once you understand how html code blocks and iframes work together, you'll have added an excellent weapon to your Wikidot arsenal (pun intended!)

-Ed

by (account deleted), 04 Nov 2009 03:39
pieterh pieterh 04 Nov 2009 12:51

I think RobElliott spends 3/4 of his time responding to "How do I embed xxx?" and the answer is always about the same.

Rob's patience is legendary. We're planning a new tag, [[html]] that will make this work instantly.

by pieterh pieterh , 04 Nov 2009 12:51
[[html]]

We're planning a new tag, [[html]] that will make this work instantly.

You probably already know this, and it's probably the reason you are planning the tag, but just so I'm on the record, that sounds fantastic.

Last edited on 06 Nov 2009 04:18 by David Marseilles
by David Marseilles David Marseilles , 06 Nov 2009 02:18
Re: [[html]]
rhombus p rhombus p 06 Nov 2009 02:34

Rob's patience is legendary. We're planning a new tag, [[html]] that will make this work instantly.

so no more logging out and logging back in to get html to work? that would be sweet!


Rhombus_Productions-3Blackn.png
by rhombus p rhombus p , 06 Nov 2009 02:34
Re: [[html]]
leiger leiger 06 Nov 2009 16:58

Uh… since when do you need to log out to get iframed html to work? :S

Am I misunderstanding something here.. ?


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 06 Nov 2009 16:58
Re: [[html]]
RobElliott RobElliott 06 Nov 2009 20:26

Rhombus, you should never need to log out and back in to get a codeblock to work. It just needs the browser cache clearing then a refresh. So on Firefox it's ctrl+shift+delete then in the details section of the popup window make sure the cache (only) is checked, then click OK. Then ctrl+r to refresh.


Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.

Last edited on 06 Nov 2009 20:26 by RobElliott
by RobElliott RobElliott , 06 Nov 2009 20:26
(account deleted) 04 Nov 2009 06:26

Anyways, thank you for your quick help...

You're welcome. Sometimes it works out that way. I was posting responses almost as fast as you were asking questions! :)

by (account deleted), 04 Nov 2009 06:26
Security risk?
RealG187 RealG187 07 Nov 2009 02:23

Wouldn't allowing HTML be a security risk?

Last edited on 07 Nov 2009 17:26 by gerdami
by RealG187 RealG187 , 07 Nov 2009 02:23
Re: Security risk?
GoVegan GoVegan 07 Nov 2009 02:51

Not if it is iframed on a different domain. That is what the planned HTML block will do.

Last edited on 07 Nov 2009 17:27 by gerdami
by GoVegan GoVegan , 07 Nov 2009 02:51
RealG187 RealG187 07 Nov 2009 03:49

What do you mean? How is that so?

by RealG187 RealG187 , 07 Nov 2009 03:49
Re: Security Risk?
GoVegan GoVegan 07 Nov 2009 11:57

Well, all web browsers have inbuilt security which prevents a webpage from controlling a different webpage in your browser.

If you create code on Wikidot.com, then you can use it to control Wikidot.com. However, if you create code on Google.com, you will not be able to control Wikidot.com with it. Google code can only control the Google website. Wikidot code can only control the Wikidot website.

So the HTML module will put your code on a different website so that it can't control Wikidot.com. Does this make more sense now?

by GoVegan GoVegan , 07 Nov 2009 11:57
page 1 of 21

Related articles

Comments

page 1 of 21
Pictures
gerdami gerdami 08 May 2007 12:51

Could not upload pictures due to page restrictions. So I linked to another wikidot location.

by gerdami gerdami , 08 May 2007 12:51
Re: Pictures
hartnell hartnell 04 Oct 2007 03:46

Er, gerdami, you are an admin, right? —hartnell

by hartnell hartnell , 04 Oct 2007 03:46
Get an error when adding
devviki devviki 03 Oct 2007 20:43

Get an ajax error when putting this embed statement into a page…
"The ajax request failed. Please check your internet connection or report a bug if the error repeats during your work". Keeps repeating…

by devviki devviki , 03 Oct 2007 20:43
Re: Get an error when adding
hartnell hartnell 04 Oct 2007 03:47

Do you have your own google search coop code to embed? —hartnell

by hartnell hartnell , 04 Oct 2007 03:47
Adsense Search
SamProof SamProof 02 Jan 2009 05:52

Hey does this work with the adsense search automatically (as it's set up in wikidot) or would you have to go set up an adsense search specifically?

by SamProof SamProof , 02 Jan 2009 05:52
Re: Adsense Search
Helmut_pdorf Helmut_pdorf 02 Jan 2009 07:38

Not sure what you mean with "specifically adsense search"?

This has nothing to do with wikidot!

1. You have an account at google and can
2. setup your OWN search machion for specific sites & or sub pages…
3. The adsense coming ( if allowed by you) on such search machine output has nothing to do with wikidot or YOUR adsense setup on wikidot account / site manager.

This is only a search machine limited to specified domains…
Try our search machine on the Search Center and you will see the outcome…


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 02 Jan 2009 07:38
Adding Google Custom Search error
splashpoint splashpoint 24 Oct 2009 13:49
<scriptsrc="http://www.google.com/jsapi"type="text/javascript"></script><scripttype="text/javascript">
google.load('search', '1');
google.setOnLoadCallback(function(){
 new google.search.CustomSearchControl('013549970210526421991:uywkjw_znii').draw('cse');
}, true);
</script>

This is the snippet I got from google. When I pasted onto my webpage I get an error message ' sorry no match for the embedded content'. I use the [[embed]] code block. Can anyone tell me what's wrong? Do I need to specify code type?

Last edited on 25 Oct 2009 01:22 by leiger
by splashpoint splashpoint , 24 Oct 2009 13:49
Re: Adding Google Custom Search error
leiger leiger 25 Oct 2009 01:30

This is a workaround, but it should work…

Open notepad or some other text editor and add this to the editor:

<html><body><scriptsrc="http://www.google.com/jsapi"type="text/javascript"></script><scripttype="text/javascript">
google.load('search', '1');
google.setOnLoadCallback(function(){
 new google.search.CustomSearchControl('013549970210526421991:uywkjw_znii').draw('cse');
}, true);
</script></body></html>

Then save the file as code.html, and upload the file to the wikidot page you're adding it to.

Next, edit the wikidot page, and type this:
[[iframe http://SITENAME.wikidot.com/local--files/PAGENAME/code.html width="100%" height="500px" frameborder="0"]]

Remember to replace the "SITENAME" with your wiki's name, and "PAGENAME" with your wikidot page's name.

I've done the exact same thing here with different code and that method worked fine :)


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

Last edited on 25 Oct 2009 01:32 by leiger
by leiger leiger , 25 Oct 2009 01:30
HTML in Wikidot?
RealG187 RealG187 04 Nov 2009 02:50

Can you use HTML in Wikidot?

by RealG187 RealG187 , 04 Nov 2009 02:50
Re: HTML in Wikidot?
(account deleted) 04 Nov 2009 03:18

Not directly. Only as described above by embedding it a code block or uploading it to a page and then iframing it.

-Ed

by (account deleted), 04 Nov 2009 03:18
Re: HTML in Wikidot?
RealG187 RealG187 04 Nov 2009 03:24

I can't get it working :(

by RealG187 RealG187 , 04 Nov 2009 03:24
NOT WORKING!!
RealG187 RealG187 04 Nov 2009 03:22

http://bestwikiever.wikidot.com/code-blocks

It's not working for me

I want the search to appear on this page:
http://bestwikiever.wikidot.com/mpglinks

Last edited on 04 Nov 2009 03:23 by RealG187
by RealG187 RealG187 , 04 Nov 2009 03:22
(account deleted) 04 Nov 2009 03:29

You're missing the [[iframe ...]] piece of the puzzle.

[[iframe http://bestwikiever.wikidot.com/code-blocks/code/1 width="400px" height="75px" frameborder="0" scrolling="no"]]

yields this result from your page:
[フレーム]

You should also surround your code block with comment tags to hide it on the page:

[!--
[[code type="html"]]
<html>
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#000000;color:#FFFFFF">
 <div class="cse-branding-form">
 <form action="http://operation420.net/search" id="cse-search-box">
 <div>
 <input type="hidden" name="cx" value="partner-pub-3003393768631515:x62wrv-ofyc" />
 <input type="hidden" name="cof" value="FORID:10" />
 <input type="hidden" name="ie" value="ISO-8859-1" />
 <input type="text" name="q" size="31" />
 <input type="submit" name="sa" value="Search" />
 </div>
 </form>
 </div>
 <div class="cse-branding-logo">
 <img src="http://www.google.com/images/poweredby_transparent/poweredby_000000.gif" alt="Google" />
 </div>
 <div class="cse-branding-text">
 Custom Search
 </div>
</div>
</html>
[[/code]]
--]

-Ed

by (account deleted), 04 Nov 2009 03:29
RealG187 RealG187 04 Nov 2009 03:34

No one mentioned I had to add "/code/1" after the URL…

Anyways, thank you for your quick help…

Last edited on 04 Nov 2009 03:34 by RealG187
by RealG187 RealG187 , 04 Nov 2009 03:34
(account deleted) 04 Nov 2009 03:39

You should have a look at this:
http://community.wikidot.com/blog:html-within-wikidot-type-2

Techniques for iframing code blocks are all over the forums, help and how-to pages. I think RobElliott spends 3/4 of his time responding to "How do I embed xxx?" and the answer is always about the same. Once you understand how html code blocks and iframes work together, you'll have added an excellent weapon to your Wikidot arsenal (pun intended!)

-Ed

by (account deleted), 04 Nov 2009 03:39
pieterh pieterh 04 Nov 2009 12:51

I think RobElliott spends 3/4 of his time responding to "How do I embed xxx?" and the answer is always about the same.

Rob's patience is legendary. We're planning a new tag, [[html]] that will make this work instantly.

by pieterh pieterh , 04 Nov 2009 12:51
[[html]]

We're planning a new tag, [[html]] that will make this work instantly.

You probably already know this, and it's probably the reason you are planning the tag, but just so I'm on the record, that sounds fantastic.

Last edited on 06 Nov 2009 04:18 by David Marseilles
by David Marseilles David Marseilles , 06 Nov 2009 02:18
Re: [[html]]
rhombus p rhombus p 06 Nov 2009 02:34

Rob's patience is legendary. We're planning a new tag, [[html]] that will make this work instantly.

so no more logging out and logging back in to get html to work? that would be sweet!


Rhombus_Productions-3Blackn.png
by rhombus p rhombus p , 06 Nov 2009 02:34
Re: [[html]]
leiger leiger 06 Nov 2009 16:58

Uh… since when do you need to log out to get iframed html to work? :S

Am I misunderstanding something here.. ?


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 06 Nov 2009 16:58
Re: [[html]]
RobElliott RobElliott 06 Nov 2009 20:26

Rhombus, you should never need to log out and back in to get a codeblock to work. It just needs the browser cache clearing then a refresh. So on Firefox it's ctrl+shift+delete then in the details section of the popup window make sure the cache (only) is checked, then click OK. Then ctrl+r to refresh.


Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.

Last edited on 06 Nov 2009 20:26 by RobElliott
by RobElliott RobElliott , 06 Nov 2009 20:26
(account deleted) 04 Nov 2009 06:26

Anyways, thank you for your quick help...

You're welcome. Sometimes it works out that way. I was posting responses almost as fast as you were asking questions! :)

by (account deleted), 04 Nov 2009 06:26
Security risk?
RealG187 RealG187 07 Nov 2009 02:23

Wouldn't allowing HTML be a security risk?

Last edited on 07 Nov 2009 17:26 by gerdami
by RealG187 RealG187 , 07 Nov 2009 02:23
Re: Security risk?
GoVegan GoVegan 07 Nov 2009 02:51

Not if it is iframed on a different domain. That is what the planned HTML block will do.

Last edited on 07 Nov 2009 17:27 by gerdami
by GoVegan GoVegan , 07 Nov 2009 02:51
RealG187 RealG187 07 Nov 2009 03:49

What do you mean? How is that so?

by RealG187 RealG187 , 07 Nov 2009 03:49
Re: Security Risk?
GoVegan GoVegan 07 Nov 2009 11:57

Well, all web browsers have inbuilt security which prevents a webpage from controlling a different webpage in your browser.

If you create code on Wikidot.com, then you can use it to control Wikidot.com. However, if you create code on Google.com, you will not be able to control Wikidot.com with it. Google code can only control the Google website. Wikidot code can only control the Wikidot website.

So the HTML module will put your code on a different website so that it can't control Wikidot.com. Does this make more sense now?

by GoVegan GoVegan , 07 Nov 2009 11:57
page 1 of 21
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /